New submission from hanks:

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"

----------
assignee: docs@python
components: Documentation
messages: 190705
nosy: docs@python, hanks
priority: normal
severity: normal
status: open
title: Document miss, Stats objects has no method called "print_results"
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to