mgedmin / objgraph

Visually explore Python object graphs
http://mg.pov.lt/objgraph/
MIT License
753 stars 72 forks source link

Adds get_new_ids and at_addrs functions #36

Closed spacether closed 6 years ago

spacether commented 6 years ago

In conducting a memory leak investigation, I found it helpful to look at my new objects created between calls to show_growth. So I made two new functions to help users out here.

get_new_ids is like show_growth, except that it stores dictionaries which hold sets of object address ids. So now one can grab a set of all the new 'list' ids.

at_addrs: Once one has the new 'list' ids, one can call at_addrs to go from a set of ids to the objects at those addresses. One can then make graphs of the back references on those new objects.

spacether commented 6 years ago

@mgedmin

Any other updates?

spacether commented 6 years ago

@mgedmin Any other updates?

spacether commented 6 years ago

@mgedmin

spacether commented 6 years ago

@mgedmin I made the updates that you suggested. Can you merge them in and post the new version on pypi?

mgedmin commented 6 years ago

Thank you!

mgedmin commented 6 years ago

objgraph 3.4.0 is out on PyPI.

spacether commented 6 years ago

Thanks!