Function Memory Usage

Paulo J. Matos pocmatos at gmail.com
Fri Oct 31 14:41:58 EDT 2008


Hi all,

What's the best way to know the amount of memory allocated by a
function and the time it took to run? While the latter is simple to
implement using a wrapper function, the former is striking me as
something that needs to be primitive to python. Any tips?

Cheers,

-- 
Paulo Jorge Matos - pocmatos at gmail.com
Webpage: http://www.personal.soton.ac.uk/pocm



More information about the Python-list mailing list