Issue 5978: cProfile and profile don't work with pygtk/pyqt and sys.exit(0) (original) (raw)
Issue5978
Created on 2009-05-09 18:57 by akkana, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
pywin | akkana,2009-05-09 18:57 | Small pygtk demo showing the problem |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 7938 | merged | adelfino,2018-06-26 22:26 | |
PR 8512 | merged | miss-islington,2018-07-28 10:01 | |
PR 8515 | merged | adelfino,2018-07-28 10:28 |
Messages (6) | ||
---|---|---|
msg87504 - (view) | Author: Akkana Peck (akkana) | Date: 2009-05-09 18:57 |
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). | ||
msg109892 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010-07-10 17:00 |
I'm note sure if this is a library bug, doc bug, external library issue or what, anyone got any true idea? | ||
msg111173 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * ![]() |
Date: 2010-07-22 13:41 |
Profiling only works on functions that actually return; maybe we could add something about this fact in the documentation | ||
msg322535 - (view) | Author: Christian Heimes (christian.heimes) * ![]() |
Date: 2018-07-28 10:01 |
New changeset 937fb55d35373fd2701078251840b6be0465a6e1 by Christian Heimes (Andrés Delfino) in branch 'master': bpo-5978: Document that profiling needs cmd/function to return (GH-7938) https://github.com/python/cpython/commit/937fb55d35373fd2701078251840b6be0465a6e1 | ||
msg322546 - (view) | Author: miss-islington (miss-islington) | Date: 2018-07-28 12:23 |
New changeset c6801b48a1964d87a77f1303e0c6ddf31f54259b by Miss Islington (bot) in branch '3.7': bpo-5978: Document that profiling needs cmd/function to return (GH-7938) https://github.com/python/cpython/commit/c6801b48a1964d87a77f1303e0c6ddf31f54259b | ||
msg322547 - (view) | Author: Steve Dower (steve.dower) * ![]() |
Date: 2018-07-28 12:24 |
New changeset 0041d721a6f6b312ef762838d390fc4d64cf5e3a by Steve Dower (Andrés Delfino) in branch '3.6': [3.6] bpo-5978: Document that profiling needs cmd/function to return (GH-8515) https://github.com/python/cpython/commit/0041d721a6f6b312ef762838d390fc4d64cf5e3a |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:48 | admin | set | github: 50228 |
2018-07-28 12:26:51 | steve.dower | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2018-07-28 12:24:37 | steve.dower | set | nosy: + steve.dowermessages: + |
2018-07-28 12:23:45 | miss-islington | set | nosy: + miss-islingtonmessages: + |
2018-07-28 10:28:04 | adelfino | set | pull_requests: + <pull%5Frequest8032> |
2018-07-28 10:01:45 | miss-islington | set | pull_requests: + <pull%5Frequest8029> |
2018-07-28 10:01:27 | christian.heimes | set | nosy: + christian.heimesmessages: + |
2018-06-26 22:28:28 | adelfino | set | nosy: + adelfinoversions: + Python 2.7, Python 3.6, Python 3.7 |
2018-06-26 22:26:33 | adelfino | set | keywords: + patchstage: needs patch -> patch reviewpull_requests: + <pull%5Frequest7548> |
2018-02-11 17:00:51 | cheryl.sabella | set | keywords: + easystage: needs patchtype: behavior -> enhancementversions: + Python 3.8, - Python 3.1, Python 2.7, Python 3.2 |
2014-02-03 19:41:25 | BreamoreBoy | set | nosy: - BreamoreBoy |
2010-10-21 13:31:14 | georg.brandl | set | assignee: docs@pythoncomponents: + Documentation, - Demos and Toolsnosy: + docs@python |
2010-07-22 13:41:21 | amaury.forgeotdarc | set | nosy: + amaury.forgeotdarcmessages: + |
2010-07-10 17:00:55 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5 |
2009-05-09 18:57:26 | akkana | create |