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 -- http://mail.python.org/mailman/listinfo/python-list