instrumenting Python code

Skip Montanaro skip at pobox.com
Wed Mar 27 08:05:59 EST 2002


    >> I was wondering if there is an easy way to instrument Python code

    Peter> Among other things, you might want to check out the use of
    Peter> sys.settrace() (see the sys module) and the standard module
    Peter> 'profile' or the trace module included as
    Peter> python/Tools/Scripts/trace.py.

Or, in 2.2, the new hotshot module, which is a lot more efficient at
profiling than the profile module.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list