Skip to content

Instantly share code, notes, and snippets.

@lopuhin
Created January 31, 2017 13:10
Show Gist options
  • Save lopuhin/2f35a8e4fee45e22f35888cab8effd5c to your computer and use it in GitHub Desktop.
Save lopuhin/2f35a8e4fee45e22f35888cab8effd5c to your computer and use it in GitHub Desktop.
Show python heap with pympler
from pympler.summary import summarize, print_
from pympler.muppy import get_object
all_objects = get_objects()
summary = summarize(all_objects)
print_(summary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment