mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
commands: Init mem profile at the end
Much more useful ...
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user