Changes in profiles
This commit is contained in:
parent
ad2b0d3e4a
commit
e0c5e6ede4
|
@ -10,9 +10,9 @@ func GetCPUProfiler() func() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer f.Close()
|
||||
if err := pprof.StartCPUProfile(f); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return pprof.StopCPUProfile
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user