mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: Init mem profile at the end
Much more useful ...
This commit is contained in:
parent
0775c98e6c
commit
4c3c512038
1 changed files with 2 additions and 2 deletions
|
@ -431,8 +431,6 @@ func (c *commandeer) initProfiling() (func(), error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
defer c.initMemProfile()
|
|
||||||
|
|
||||||
stopMutexProf, err := c.initMutexProfile()
|
stopMutexProf, err := c.initMutexProfile()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -444,6 +442,8 @@ func (c *commandeer) initProfiling() (func(), error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return func() {
|
return func() {
|
||||||
|
c.initMemProfile()
|
||||||
|
|
||||||
if stopCPUProf != nil {
|
if stopCPUProf != nil {
|
||||||
stopCPUProf()
|
stopCPUProf()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue