How to calculate the CPU time consumption and memory consuption of any python program in Linux

MrJean1 MrJean1 at gmail.com
Sat Dec 24 18:56:21 CET 2005


For CPU time usage, see the standard time module

  <http://docs.python.org/lib/module-time.html>

specifically the time.clock() function.  For memory usage see

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


/Jean Brouwers




More information about the Python-list mailing list