This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hanks
Recipients docs@python, hanks
Date 2013-06-06.04:16:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370492169.32.0.572100165636.issue18146@psf.upfronthosting.co.za>
In-reply-to
Content
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"
History
Date User Action Args
2013-06-06 04:16:09hankssetrecipients: + hanks, docs@python
2013-06-06 04:16:09hankssetmessageid: <1370492169.32.0.572100165636.issue18146@psf.upfronthosting.co.za>
2013-06-06 04:16:09hankslinkissue18146 messages
2013-06-06 04:16:08hankscreate