profiling a C++ python extension

Matthew Woodcraft mattheww at chiark.greenend.org.uk
Thu Jul 12 15:40:13 EDT 2007


rasmus  <matt.rasmus at gmail.com> 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. 

> Any suggestions or tips would be helpful.

You didn't say what platform you're using. If you're using linux and
have root access, oprofile should be able to do what you need.

-M-




More information about the Python-list mailing list