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 jough
Recipients docs@python, jough
Date 2013-05-22.15:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369235558.14.0.532987051887.issue18033@psf.upfronthosting.co.za>
In-reply-to
Content
The example on this page:
http://docs.python.org/2/library/profile.html?highlight=pstats#profile.Profile

Shows:

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()

Where "ps.print_results()" should be "ps.print_stats()"
History
Date User Action Args
2013-05-22 15:12:38joughsetrecipients: + jough, docs@python
2013-05-22 15:12:38joughsetmessageid: <1369235558.14.0.532987051887.issue18033@psf.upfronthosting.co.za>
2013-05-22 15:12:38joughlinkissue18033 messages
2013-05-22 15:12:37joughcreate