Memory stats

gene tani gene.tani at gmail.com
Tue Sep 27 11:29:30 EDT 2005


linux:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222

Martin v. Löwis wrote:
> Tarek Ziadé wrote:
> > I am trying to find a general memory profiler that can measure the
> > memory usage in Python program
> > and gather some stats about object usages, and things like that.
>
> As Diez says, use gc: gc.getobjects() gives you all container objects.
> If you want a list of all objects (container or not), you have to
> compile a debug build of Python.
> 
> Regards,
> Martin




More information about the Python-list mailing list