pkg / profile

Simple profiling for Go
BSD 2-Clause "Simplified" License
1.99k stars 124 forks source link

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

Open prakashettigar opened 3 years ago

prakashettigar commented 3 years ago

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."

davecheney commented 3 years ago

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