Message190705
| 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: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 |
|