Skip to content

Instantly share code, notes, and snippets.

@progrium
Created June 7, 2011 01:07
Show Gist options
  • Select an option

  • Save progrium/1011471 to your computer and use it in GitHub Desktop.

Select an option

Save progrium/1011471 to your computer and use it in GitHub Desktop.
>>> h.heap()
Partition of a set of 3149666 objects. Total size = 432576704 bytes.
Index Count % Size % Cumulative % Kind (class / dict of class)
0 301452 10 110323872 26 110323872 26 dict (no owner)
1 299175 9 88555800 20 198879672 46 realtime.utils.attrdict
2 299176 9 83769280 19 282648952 65 dict of realtime.utils.dispatcher.CallbackDispatcher
3 669660 21 45685424 11 328334376 76 str
4 599730 19 43301008 10 371635384 86 list
5 339907 11 24939144 6 396574528 92 tuple
6 299176 9 19147264 4 415721792 96 realtime.utils.dispatcher.CallbackDispatcher
7 299376 10 7185024 2 422906816 98 float
8 454 0 1319056 0 424225872 98 dict of module
9 10892 0 1307040 0 425532912 98 function
<441 more rows. Type e.g. '_.more' to view.>
>>> h.heap()[0].shpaths
0: hpy().Root.i0_codec_error_registry
1: hpy().Root.i0_codec_search_cache
2: hpy().Root.i0_modules
3: hpy().Root.t140735074487456_dict
>>> h.heap()[3].shpaths
0: hpy().Root.i0_builtins['__doc__']
1: hpy().Root.i0_builtins['__name__']
2: hpy().Root.i0_builtins.keys()[0]
3: hpy().Root.i0_builtins.keys()[1]
4: hpy().Root.i0_builtins.keys()[2]
5: hpy().Root.i0_builtins.keys()[3]
6: hpy().Root.i0_builtins.keys()[4]
7: hpy().Root.i0_builtins.keys()[5]
8: hpy().Root.i0_builtins.keys()[6]
9: hpy().Root.i0_builtins.keys()[7]
<... 1095 more paths ...>
>>> h.heap()[4].shpaths
0: hpy().Root.i0_codec_search_path
>>> h.heap()[5].shpaths
0: hpy().Root.i0_sysdict['builtin_module_names']
1: hpy().Root.i0_sysdict['subversion']
2: hpy().Root.i0_sysdict['version_info']
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment