Is there a way to profile underlying C++ code?
Travis E. Oliphant
oliphant.travis at ieee.org
Wed Jan 25 02:02:13 EST 2006
Bo Peng wrote:
> Dear list,
>
> I have a C++-SWIG-wrapped python module. The running time for one of the
> functions is pretty unpredictable so I would like to profile it.
> However, the python profiler does not seem to enter the compiled module
> (.so file). Is there a way to profile the C++ functions?
>
On Linux you can use oprofile (which is pretty nice and easy to use ---
no recompiling. Just start the profiler, run your code, and stop the
profiler).
http://oprofile.sourceforge.net/about/
-Travis
More information about the Python-list
mailing list