[C++-sig] profiling C++ python extension
stephan nies
nies.stephan at googlemail.com
Fri Nov 21 19:03:53 CET 2008
Hello,
I would like to profile an C++ python extension on Linux.
I am aware that oprofile and valgrind exist.
But I was hoping to get it done with gprof.
Problem there is that for gprof to work
you would have to use -pg -g at every
compile and link step up to the main-function
in classic C++ programm.
Obviously thats different in python.
So do I have to recompile python?
Will that suffice? (I read about other
problems involving dlopen() being
used for imports)
Has anyone of you ever done profiling
a C or C++ extension with gprof?
Thanks,
Stephan
More information about the Cplusplus-sig
mailing list