Python Launch Application Example

I'm used to fetching C-based applications that every few milliseconds see that at that moment a function stack is called.

This allows me to see where most of the time is spent in the application, so I can optimize it.

However, when using python, the sample is not very useful, because it fetch the C functions of the python interpreter, not the python code itself.

Is there any useful fetch tool for python?

+3
source share
1 answer

Python . , cProfile python script :

$ python -m cProfile myscript.py

, API . , cProfile Python 2.5. pure-Python, "".

+4

All Articles