Can you use gprof to profile python extensions?

Alex cut_me_out at hotmail.com
Wed Aug 9 11:33:53 EDT 2000


Hi.  I'd like to profile an extension I've written, and I'm having some
trouble doing it.  The extension is statically linked into python
(version 2.0), and I recompiled python with OPT= -g -pg
However, running python does not produce a file called gmon.out.  Is it
possible to use gprof with python, and if so, does anyone have a
suggestion about what I might be doing wrong?

Alex.



More information about the Python-list mailing list