Skip to content

Conversation

@PetterS
Copy link
Owner

@PetterS PetterS commented Jul 29, 2019

No description provided.

print("Warming up (to discount regex cache etc.)")
run()

tracemalloc.start(25)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that 25 frames are enough to capture any snapshot differences?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is just a limit of the tracebacks displayed for memory allocations. If it is not enough, the differences will still be displayed, but the tracktrace may be too short to see the whole path up to where the allocation took place.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Sounds good.

Copy link
Collaborator

@linussvarm linussvarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I did not know about these tools. Python is sweet is this regard.

@linussvarm linussvarm assigned PetterS and unassigned linussvarm Jul 31, 2019
@PetterS PetterS merged commit d4f1fda into master Aug 1, 2019
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

Successfully merging this pull request may close these issues.

3 participants