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 akkana
Recipients akkana
Date 2009-05-09.18:57:25
SpamBayes Score 0.00029983354
Marked as misclassified No
Message-id <1241895448.39.0.497331485225.issue5978@psf.upfronthosting.co.za>
In-reply-to
Content
I was following the steps at http://docs.python.org/library/profile.html
to try to profile a pygtk program, but it wasn't working -- I was
getting no output at all from either cProfile or profile.

The problem turned out to be that I was exiting by calling sys.exit(0),
because that's what most pygtk programs I'd seen were doing. Changing
that to gtk.main_quit() made profiling work (but it took a long time to
track that down).

Apparently the same thing happens in pyqt if you call sys.exit(0).
History
Date User Action Args
2009-05-09 18:57:28akkanasetrecipients: + akkana
2009-05-09 18:57:28akkanasetmessageid: <1241895448.39.0.497331485225.issue5978@psf.upfronthosting.co.za>
2009-05-09 18:57:26akkanalinkissue5978 messages
2009-05-09 18:57:25akkanacreate