some kind of trace facility ?

Diez B. Roggisch deets at nospam.web.de
Sun Aug 10 07:24:53 EDT 2008


Stef Mientki schrieb:
> hello,
> 
> I want to investigate on a regular base the flow of my Python (most of 
> them using wxPython) programs.
> So I want to have some log facilty, that logs things like
> - every time a function / method is called
> - the time spent in that function / method (or even better start / 
> finish time)
> - in case the function / method has some predefined variables, the 
> values of these variables
> - the caller
> 
> As an extra condition, I'm only interested in my own program modules 
> (located in a specific subdirectory).
> 
> Is there a module available that can perform such a task ?
> Any hints to get started ?

THere is the module profile and the sys.trace-hook.

Diez



More information about the Python-list mailing list