Re: [Karrigell-main] very simple profiler
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2003-12-08 21:59:14
|
Very nice idea Remco ! Could you develop this, make the HTML rendering nicer and add handling of .pih and .hip scripts ? Thanks, Pierre ----- Original Message ----- From: "Remco Boerma" <rb...@ip...> To: <Kar...@li...> Sent: Thursday, December 04, 2003 12:36 PM Subject: [Karrigell-main] very simple profiler > """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 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Karrigell-main mailing list > Kar...@li... > https://lists.sourceforge.net/lists/listinfo/karrigell-main |