How to measure memory footprint of Python objects?

Fredrik Lundh fredrik at pythonware.com
Wed Sep 20 14:13:33 CEST 2006


Neagu, Adrian wrote:

> I have a python program that takes a lot of memory (>hundred Mb).

> I can see the total process size of the Python process (Task manager on MS
> Win or Unix "ps" command) but that is not precise enough for me

I'm not sure those two statements are compatible, though.

if your program is using hundreds of megabytes, surely kilobyte 
precision should be good enough for you ?

</F>




More information about the Python-list mailing list