Message87504
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). |
|
Date |
User |
Action |
Args |
2009-05-09 18:57:28 | akkana | set | recipients:
+ akkana |
2009-05-09 18:57:28 | akkana | set | messageid: <1241895448.39.0.497331485225.issue5978@psf.upfronthosting.co.za> |
2009-05-09 18:57:26 | akkana | link | issue5978 messages |
2009-05-09 18:57:25 | akkana | create | |
|