[Tutor] trace / profile function calls with inputs

2014-02-09 Thread Richard Cziva
Hi All, I am trying to print out every function that is being called while my Python program is running (own functions and library calls too). I can not modify the Python programs I am trying to profile. Let me give an example. A program contains a function like this: def foo(x): y = math.

[Tutor] trace / profile every function with inputs

2014-02-09 Thread Richard Cziva
Hi All, I am struggling with a "simple" problem: I would like to print out every function that is being executed while my Python program is running. I can not modify the Python programs that I would like to profile. Let me give an example. A program contains a function and a call like this: de