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
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to