We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c4e50a commit d9503e0Copy full SHA for d9503e0
1 file changed
main.go
@@ -212,13 +212,13 @@ func init() {
212
}
213
214
func main() {
215
- // add cpu profilling
+ // add cpu profiling
216
if cpuprofile {
217
- defer profile.Start(profile.NoShutdownHook).Stop()
+ defer profile.Start(profile.CPUProfile, profile.NoShutdownHook).Stop()
218
219
- // add mem profilling
+ // add mem profiling
220
if memprofile {
221
- defer profile.Start(profile.MemProfile).Stop()
+ defer profile.Start(profile.MemProfile, profile.NoShutdownHook).Stop()
222
223
224
log.SetReportCaller(true)
0 commit comments