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

Shahriar Shamil Uulu shamilsons at gmail.com
Sat Dec 24 05:10:56 EST 2005


Hi All,
i want to calculate the cpu time consumption and memory consuption of
any program written in  python during runtime on Linux Fedora Core - 2,
P4, RAM-512 MB. Actually i have written one database program in two
ways, 1) Inprocedural way 2) in object oriented way. Now i want to
check how efficient each function, object,method and variable is. How i
can do this ?
Any help will be greatly apperciated ...
Thank you ...




More information about the Python-list mailing list