[Karrigell-main] very simple profiler
Brought to you by:
quentel
From: Remco B. <rb...@ip...> - 2003-12-04 11:36:48
|
"""use something like: http://localhost/test/profile.py?f=filename.py to profile a python file. If parameters are used, used them before the f=. Something like ?python=cool&f=filename.py """ if 'HIP' in locals().keys(): import profile p = profile.Profile().runctx( file(QUERY['f'],'r').read(),globals(),locals() ) print "<pre>" p.print_stats() print "</pre>" gr. Remco Boerma IPN, the Netherlands |