Changes in profiles

This commit is contained in:
qowevisa 2024-06-09 07:58:10 +03:00
parent ad2b0d3e4a
commit e0c5e6ede4

View File

@ -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
}