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