Re: profiling a C++ python extension

2007-07-12 Thread Matthew Woodcraft
rasmus <[EMAIL PROTECTED]> wrote: > I have used gprof to profile stand alone C++ programs. I am also > aware of pure python profilers. However, is there a way to get > profile information on my C++ functions when they are compiled in a > shared library (python extension module) and called from p

Re: profiling a C++ python extension

2007-07-12 Thread [EMAIL PROTECTED]
Hi! It doesn't suffice to compile the python interpreter with -pg, as the module is loaded via dlopen. I solved the problem for my case compiling an executable with embedded python and the module itself. I would wish, that there would be an easier way. Best regards, Michael -- http://mail.python.

Re: profiling a C++ python extension

2007-07-11 Thread Emin.shopper Martinian.shopper
Googling for "profiling python extensions" leads to the following link which worked for me a while ago: http://plexity.blogspot.com/2006/02/profiling-python-extensions.html On 7/10/07, rasmus <[EMAIL PROTECTED]> wrote: I have used gprof to profile stand alone C++ programs. I am also aware of p

Re: profiling a C++ python extension

2007-07-11 Thread Gal Diskin
rasmus wrote: I have used gprof to profile stand alone C++ programs. I am also aware of pure python profilers. However, is there a way to get profile information on my C++ functions when they are compiled in a shared library (python extension module) and called from python. From what I can te

profiling a C++ python extension

2007-07-10 Thread rasmus
I have used gprof to profile stand alone C++ programs. I am also aware of pure python profilers. However, is there a way to get profile information on my C++ functions when they are compiled in a shared library (python extension module) and called from python. From what I can tell, gmon.out will