%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/__pycache__/cProfile.cpython-38.pyc

U

na[@szdZdddgZddlZddlZdddZdddZejje_ejje_Gd	ddejZd
dZ	dd
Z
edkrve
dS)zUPython interface for the 'lsprof' profiler.
   Compatible with the 'profile' module.
runrunctxProfileNcCstt|||SN)
_pyprofile_Utilsrr)	statementfilenamesortr$/usr/local/lib/python3.8/cProfile.pyrscCstt|||||Sr)rrrr)r	globalslocalsr
rrrr
rsc@s`eZdZdZdddZddZddZd	d
ZddZd
dZ	ddZ
de
_ddZ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}|||dSNr)pstatsStatsZ
strip_dirsZ
sort_statsprint_stats)selfrrrrr
r(szProfile.print_statsc	Cs8ddl}t|d}|||j|W5QRXdS)Nrwb)marshalopencreate_statsdumpstats)rfilerfrrr

dump_stats,szProfile.dump_statscCs||dSr)disablesnapshot_statsrrrr
r2szProfile.create_statsc
Cs,|}i|_i}|D]P}t|j}|j}||j}|j}|j}i}	|	|t|j<|||||	f|j|<q|D]}|j	rlt|j}|j	D]}
z|t|
j}	Wnt
k
rYqYnX|
j}||
j}|
j}|
j}||	kr|	|}||d7}||d7}||d7}||d7}||||f|	|<qqldS)Nr)ZgetstatsrlabelcodeZ	callcountZreccallcountZ
inlinetimeZ	totaltimeidZcallsKeyError)rentriesZcallersdictsentryfuncZncZccttctZcallersZsubentryprevrrr
r6s>






zProfile.snapshot_statscCsddl}|j}||||Sr)__main____dict__r)rcmdr.dictrrr
r\szProfile.runcCs(|zt|||W5|X|Sr)enablerexec)rr0rrrrr
ras

zProfile.runctxcOst|dkr|^}}}nV|s&tdnHd|krZ|d}|^}}ddl}|jdtddntdt|d|z|||WS|XdS)	Nr"z:descriptor 'runcall' of 'Profile' object needs an argumentr*rz0Passing 'func' as keyword argument is deprecated)
stacklevelz7runcall expected at least 1 positional argument, got %dr!)len	TypeErrorpopwarningswarnDeprecationWarningr2r)argskwrr*r8rrr
runcalljs&


zProfile.runcallz($self, func, /, *args, **kw)cCs||Sr)r2r rrr
	__enter__szProfile.__enter__cGs|dSr)r)rexc_inforrr
__exit__szProfile.__exit__N)r)__name__
__module____qualname____doc__rrrrrrr=__text_signature__r>r@rrrr
rs
&	cCs(t|trdd|fS|j|j|jfSdS)N~r)
isinstancestrco_filenameco_firstlinenoco_name)r%rrr
r$s

r$c
Csddl}ddl}ddl}ddl}ddlm}d}||d}d|_|jdddd	dd
|jddd
ddt|j	j
d|jdddddd|jdds||
d|\}}||jdd<|jdk	r|j|j|_t|dkr|jrd}	|j|dd}
nR|d}|jd|j|t|d}t||d}	W5QRX|dddd}
zt|	|
d|j|jWn6tk
r}
zd|_|
|
jW5d}
~
XYnXn||S)Nr)OptionParserzNcProfile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ...)usageFz-oz	--outfileoutfilezSave stats to <outfile>)desthelpdefaultz-sz--sortrz?Sort order when printing to stdout, based on pstats.Stats classr)rOrPrQchoicesz-mmodule
store_truezProfile a library module)rOactionrPrQr!r"z(run_module(modname, run_name='__main__'))
run_modulemodnamerbr3r.)__file__rA__package__
__cached__)ossysrunpyrZoptparserLZallow_interspersed_argsZ
add_optionsortedrZsort_arg_dict_defaultargvprint_usageexit
parse_argsrNpathabspathr5rSrVinsertdirnamercompilereadrrBrokenPipeErrorstdouterrno)r\r]r^rrLrMparseroptionsr;r%ZglobsZprognamefpexcrrr
mainsd






 rqr.)Nr)Nr)rD__all__Z_lsprofZprofilerrrZProfilerrr$rqrArrrr
<module>s




o;

Zerion Mini Shell 1.0