Take the 2-minute tour ×  I have an application that consists of
multiple python scripts. Some of these scripts are calling C
code. The application is now running much slower than it was, so
I would like to profile it to see where the problem lies. Is
there a tool, software package or just a way to profile such an
application? A tool that will follow the python code into the C
code and profile these calls as well?  Note 1: I am well aware
of the standard Python profiling tools. I'm specifically looking
here for combined Python/C profiling.  Note 2: the Python
modules are calling C code using ctypes (see
http://docs.python.org/library/ctypes.html for details).
share|improve this question "slower than it was" ? So Why do you
have to change it? –  joni Oct 29 '10 at 10:53 @joni: Code can
change for many different reasons. Also, it might have slowed
down without any code changes (heavier workloads, busier server,
network issues, etc.). –  Marcelo Cantos Oct 29 '10 at 10:57
@joni: since I am making regular chang