pkg/profile

Doesn't releases the file even after calling profile.Stop()

Opened this issue · 1 comments

Failed to remove the files created by the profile pkg
"error":"remove mem.pprof: The process cannot access the file because it is being used by another process."

The file should be closed when stop is called. Do you see this line in the output of your program? https://github.com/pkg/profile/blob/master/profile.go#L211