[New-bugs-announce] [issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)
Akkana Peck
report at bugs.python.org
Sat May 9 20:57:28 CEST 2009
New submission from Akkana Peck <akkzilla at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5978>
_______________________________________
More information about the New-bugs-announce
mailing list