Re: [Tutor] trace / profile function calls with inputs

2014-02-10 Thread spir
On 02/08/2014 05:36 PM, Richard Cziva wrote: 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 f

Re: [Tutor] trace / profile function calls with inputs

2014-02-10 Thread ALAN GAULD
CCing tutor list.   Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos > > >> You say functions. But what about the functions used to implement >> operators like +,-,*,+= etc? >I don't need th

Re: [Tutor] trace / profile function calls with inputs

2014-02-09 Thread Alan Gauld
On 08/02/14 16:36, Richard Cziva wrote: 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. I don't know of any way of doing this exactly as you want

[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.