Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
prakashettigar opened this issue Aug 30, 2021 · 1 comment
Open

Comments

@prakashettigar
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants