Popular recipes tagged "meta:requires=reprlib"http://code.activestate.com/recipes/tags/meta:requires=reprlib/2014-05-15T13:44:15-07:00ActiveState Code RecipesCompute Memory footprint of an object and its contents (Python)
2012-11-23T23:57:31-08:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/
<p style="color: grey">
Python
recipe 577504
by <a href="/recipes/users/178123/">Raymond Hettinger</a>
(<a href="/recipes/tags/memory/">memory</a>, <a href="/recipes/tags/sizeof/">sizeof</a>).
Revision 3.
</p>
<p>Recursive version sys.getsizeof(). Extendable with custom handlers.</p>
Compute Memory footprint of an object and its contents (Python)
2014-05-15T13:44:15-07:00yotahttp://code.activestate.com/recipes/users/4184815/http://code.activestate.com/recipes/578880-compute-memory-footprint-of-an-object-and-its-cont/
<p style="color: grey">
Python
recipe 578880
by <a href="/recipes/users/4184815/">yota</a>
(<a href="/recipes/tags/memory/">memory</a>, <a href="/recipes/tags/sizeof/">sizeof</a>).
</p>
<p>Recursive version sys.getsizeof(). Extendable with custom handlers.</p>