python print all function calls to know the script flow

Viewed 4317

How can I print every function/method call ? I have tried to use : python -m trace --trace but it prints also the function inner code... I just want functions names that were called. using traceback in code prints the last function called before calling the command itself, and the code contains many classes...

2 Answers
Related