Message190705
link: http://docs.python.org/2/library/profile.html
The example in this page:
import cProfile, pstats, io
pr = cProfile.Profile()
pr.enable()
... do something ...
pr.disable()
s = io.StringIO()
ps = pstats.Stats(pr, stream=s)
ps.print_results() # actually Stats objects has no method called "print_results" |
|
Date |
User |
Action |
Args |
2013-06-06 04:16:09 | hanks | set | recipients:
+ hanks, docs@python |
2013-06-06 04:16:09 | hanks | set | messageid: <1370492169.32.0.572100165636.issue18146@psf.upfronthosting.co.za> |
2013-06-06 04:16:09 | hanks | link | issue18146 messages |
2013-06-06 04:16:08 | hanks | create | |
|