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.

classification
Title: Profilier hooked into SystemExit
Type: Stage:
Components: Demos and Tools Versions: Python 2.2
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: dshell, facundobatista
Priority: normal Keywords:

Created on 2003-02-16 01:41 by dshell, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (3)
msg14612 - (view) Author: Dylan Shell (dshell) Date: 2003-02-16 01:41
I've been attempting to profile code that uses the
PyOpenGL bindings. Essentially I've got a program with
that calls glutMainLoop - which is said to never return.

The problem is that since this really envokes some C
code that calls "exit" the profiler does not catch a
"SystemExit" exception, because this is never thrown.

If there was a way to get the profiler to dump state on
demand, I could do this in an "onExit" event handler,
and then restart python with the pstats module to have
a look-see.

Alternatively the profiler could use some OS provided
exit handler - or something simliar.

Also, running the main loop in a thread does not seem
to work (the video memory used by GLUT) is corrupted.
So, this isn't a fair test on which to profile.

I suspect that the ability to dump profile stats to
disk could also be useful for other folks.


msg14613 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2005-01-11 04:08
Logged In: YES 
user_id=752496

Please, could you verify if this problem persists in Python 2.3.4
or 2.4?

If yes, in which version? Can you provide a test case?

If the problem is solved, from which version?

Note that if you fail to answer in one month, I'll close this bug
as "Won't fix".

Thank you! 

.    Facundo
msg14614 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2005-05-30 19:47
Logged In: YES 
user_id=752496

Deprecated. Reopen only if still happens in 2.3 or newer. 

.    Facundo
History
Date User Action Args
2022-04-10 16:06:50adminsetgithub: 37991
2003-02-16 01:41:48dshellcreate