MINI MINI MANI MO

Path : /lib64/python3.6/__pycache__/
File Upload :
Current File : //lib64/python3.6/__pycache__/cProfile.cpython-36.opt-1.pyc

3


 \@szdZdddgZddlZddlZdddZdddZejje_ejje_Gd	ddejZd
dZ	dd
Z
edkrve
dS)zUPython interface for the 'lsprof' profiler.
   Compatible with the 'profile' module.
runrunctxProfileNcCstjtj|||S)N)
_pyprofile_Utilsrr)	statementfilenamesortr /usr/lib64/python3.6/cProfile.pyrscCstjtj|||||S)N)rrrr)rglobalslocalsr	r
rrrrsc@sJeZdZdZdddZddZddZd	d
ZddZd
dZ	ddZ
dS)ra`Profile(timer=None, timeunit=None, subcalls=True, builtins=True)

    Builds a profiler object using the specified timer function.
    The default timer is a fast built-in one based on real time.
    For custom timer functions returning integers, timeunit can
    be a float specifying a scale (i.e. how long each integer unit
    is, in seconds).
    rcCs$ddl}|j|jj|jdS)Nr)pstatsStatsZ
strip_dirsZ
sort_statsprint_stats)selfr
rrrrr(szProfile.print_statsc
Cs8ddl}t|d}|j|j|j|WdQRXdS)Nrwb)marshalopencreate_statsdumpstats)rfilerfrrr
dump_stats,szProfile.dump_statscCs|j|jdS)N)disablesnapshot_stats)rrrrr2szProfile.create_statscCs6|j}i|_i}xX|D]P}t|j}|j}||j}|j}|j}i}	|	|t|j<|||||	f|j|<qWx|D]}|j	rrt|j}x|j	D]}
y|t|
j}	Wnt
k
rwYnX|
j}||
j}|
j}|
j}||	kr|	|}||d7}||d7}||d7}||d7}||||f|	|<qWqrWdS)Nrr)ZgetstatsrlabelcodeZ	callcountZreccallcountZ
inlinetimeZ	totaltimeidZcallsKeyError)rZentriesZcallersdictsentryfuncZncZccZttZctZcallersZsubentryprevrrrr6s>






zProfile.snapshot_statscCsddl}|j}|j|||S)Nr)__main____dict__r)rcmdr'dictrrrr\szProfile.runc
Cs(|jzt|||Wd|jX|S)N)enableexecr)rr)r
rrrrras

zProfile.runctxc
Os"|jz
|||S|jXdS)N)r+r)rr%argskwrrrruncalljs
zProfile.runcallN)r0)__name__
__module____qualname____doc__rrrrrrr/rrrrrs
&	cCs(t|trdd|fS|j|j|jfSdS)N~r)
isinstancestrco_filenameco_firstlinenoco_name)r!rrrr ss

r c
Cs&ddl}ddl}ddl}ddlm}d}||d}d|_|jdddd	dd
|jddd
ddt|jj	d|j
dds|j|jd|j
\}}||j
dd<t|dkr|d}|jjd|jj|t|d}	t|	j|d}
WdQRX|dddd}t|
|d|j|jn|j|S)Nr)OptionParserz@cProfile.py [-o output_file_path] [-s sort] scriptfile [arg] ...)usageFz-oz	--outfileoutfilezSave stats to <outfile>)desthelpdefaultz-sz--sortr
z?Sort order when printing to stdout, based on pstats.Stats classr)r>r?r@choicesrrbr,r')__file__r1__package__
__cached__r0)ossysrZoptparser;Zallow_interspersed_argsZ
add_optionsortedrZsort_arg_dict_defaultargvZprint_usageexit
parse_argslenpathinsertdirnamercompilereadrr=r
)rFrGrr;r<parserZoptionsr-Zprognamefpr!Zglobsrrrmain{s8




rTr'r0)Nr0r0)Nr0)r4__all__Z_lsprofZprofilerrrZProfilerrr rTr1rrrr<module>s




X%

OHA YOOOO