Skip to content

Tracemalloc docs - Print entire file path #18744

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

Closed

Conversation

eduardanghel
Copy link

The tracemalloc example given in the 'Pretty top' section of the docs outputs the 10 lines allocating the most memory in the format "module/file.py".

While trying to investigate a memory leak on a project, using the aforementioned example produced a not so useful output.

The change proposed here would printout the entire path.

@vstinner
Copy link
Member

I merged GH-18903 yesterday. In short, both PRs are identical which means that you both agree: great! FYI I backported GH-18903 to 3.7 and 3.8.

Good to know that you're using tracemalloc ;-)

@vstinner vstinner closed this Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants