File: //proc/2/cwd/usr/lib/python2.4/Tools/scripts/hotshotmain.pyo
mς
=5Dc @ sz d Z d k Z d k Z d k Z d k Z d k Z d Z d Z d Z e d j o e i
e e i d n d S( sζ
Run a Python script under hotshot's control.
Adapted from a posting on python-dev by Walter Dφrwald
usage %prog [ %prog args ] filename [ filename args ]
Any arguments after the filename are used as sys.argv for the filename.
Ns hotshot.profc C s§ t i | } t i i d t i i | | g | t _ | i d | | i
t i i | } | i d d t i } t i t _ | i | t _ d S( Ni s execfile(%r)t timet calls( t hotshott Profilet profilet proft syst patht insertt ost dirnamet filenamet argst argvt runt closet statst loadt
sort_statst stdoutt save_stdoutt stderrt print_stats( R R R R R R ( ( t/ /usr/lib/python2.4/Tools/scripts/hotshotmain.pyt run_hotshot s
c C s t i t } | i | i d d d d d t d d d d | i | \ } } t
| d
j o | i d d Sn | d
} t
| | i | d S(
Ns -ps --profilet actiont storet defaultt destR t helps Specify profile file to usei s missing script to executei ( t optparset OptionParsert __doc__t parsert disable_interspersed_argst
add_optiont PROFILEt
parse_argsR t optionst lent
print_helpR R R ( R R! R&