New submission from Akkana Peck <akkzi...@shallowsky.com>: 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). ---------- components: Demos and Tools files: pywin messages: 87504 nosy: akkana severity: normal status: open title: cProfile and profile don't work with pygtk/pyqt and sys.exit(0) type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file13943/pywin _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5978> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com