Measure the amount of memory used?

John Gordon gordon at panix.com
Thu Aug 18 17:39:56 CEST 2011


In <mailman.166.1313680196.27778.python-list at python.org> Jack Bates <ms419 at freezone.co.uk> writes:

>  1) How does the amount of memory used change as it runs?

I've observed that the amount of memory consumed by a program will
stay constant or increase; it never decreases.

Or were you wanting to measure the rate of increase over time?

> Has anyone else measured the memory used by a Python program? How did
> you do it?

I generally use 'top' to do this for any program.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list