How to measure memory footprint of Python objects?

Paul Rubin http
Wed Sep 20 08:12:38 EDT 2006


"Neagu, Adrian" <Adrian.Neagu at nuance.com> writes:
> I would like to get that size at different given moments in time to make up
> a timeline of memory consumption. But, if that is too tricky, I would be
> happy to just get the maximum.
> 
> Any suggestion welcome,

See the docs for the gc module.



More information about the Python-list mailing list