Skip to content
Permalink
Browse files

commands: Init mem profile at the end

Much more useful ...
  • Loading branch information...
bep committed Apr 23, 2019
1 parent 0775c98 commit 4c3c5120389cc95edc63b8f18a0eee786aa0c5e2
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()
}

0 comments on commit 4c3c512

Please sign in to comment.
You can’t perform that action at this time.