override settrace

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Apr 26 02:00:10 EDT 2007


En Wed, 25 Apr 2007 02:05:57 -0300, Raja <rokkamraja at gmail.com> escribió:

>   I want to override the sys.settrace() call, create a way to trace
> the execution of a python program. Keep track of all objects created
> and destroyed. Keep track of the call pattern throughout the execution
> of the program and output a simplified "call graph" to standard out.
> Please help me in this regard.

Maybe you find easier to use one of the existing profiling tools:
http://docs.python.org/lib/profile.html

-- 
Gabriel Genellina



More information about the Python-list mailing list