Skip to content

Tracemalloc docs - Print entire file path#18744

Closed
eduardanghel wants to merge 2 commits into
python:masterfrom
eduardanghel:edit_tracemalloc_docs
Closed

Tracemalloc docs - Print entire file path#18744
eduardanghel wants to merge 2 commits into
python:masterfrom
eduardanghel:edit_tracemalloc_docs

Conversation

@eduardanghel

Copy link
Copy Markdown

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
Copy Markdown
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