commands: Init mem profile at the end - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4c3c5120389cc95edc63b8f18a0eee786aa0c5e2
(DIR) parent 0775c98e6c5b700e46adaaf190fc3f693a6ab002
(HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 23 Apr 2019 17:14:02 +0200
commands: Init mem profile at the end
Much more useful ...
Diffstat:
M commands/hugo.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/commands/hugo.go b/commands/hugo.go
@@ -431,8 +431,6 @@ func (c *commandeer) initProfiling() (func(), error) {
return nil, err
}
- defer c.initMemProfile()
-
stopMutexProf, err := c.initMutexProfile()
if err != nil {
return nil, err
@@ -444,6 +442,8 @@ func (c *commandeer) initProfiling() (func(), error) {
}
return func() {
+ c.initMemProfile()
+
if stopCPUProf != nil {
stopCPUProf()
}