Popular recipes tagged "leak"http://code.activestate.com/recipes/tags/leak/2008-10-03T12:14:52-07:00ActiveState Code RecipesTrack new/unreclaimed objects between 2 points in the code (Python)
2008-10-03T12:14:52-07:00david decotignyhttp://code.activestate.com/recipes/users/4129454/http://code.activestate.com/recipes/576523-track-newunreclaimed-objects-between-2-points-in-t/
<p style="color: grey">
Python
recipe 576523
by <a href="/recipes/users/4129454/">david decotigny</a>
(<a href="/recipes/tags/cycle/">cycle</a>, <a href="/recipes/tags/garbage/">garbage</a>, <a href="/recipes/tags/leak/">leak</a>, <a href="/recipes/tags/memory/">memory</a>, <a href="/recipes/tags/reclaim/">reclaim</a>).
Revision 3.
</p>
<p>This module provides 3 ways of detecting which objects have been allocated (methods 1 and 3) or became un-reclaimable (method 2) between 2 points in the code. It can be very useful to detect memory leaks (eg. cycles involving objects with a __del__ method).</p>