ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/cProfile.cpython-33.pyo

�
{yMa�c@s�dZdddgZddlZdddd�Zdddd�ZGd	d�dej�Zd
d�Zdd
�Z	e
dkr�e	�ndS(uUPython interface for the 'lsprof' profiler.
   Compatible with the 'profile' module.
urunurunctxuProfileiNicCsnt�}d}z,y|j|�}Wntk
r9YnXWd|dk	rZ|j|�n|j|�}X|S(uRun statement under profiler optionally saving results in filename

    This function takes a single argument that can be passed to the
    "exec" statement, and an optional file name.  In all cases this
    routine attempts to "exec" its first argument and gather profiling
    statistics from the execution. If no file name is present, then this
    function automatically prints a simple profiling report, sorted by the
    standard name string (file/line/function-name) that is presented in
    each line.
    N(uProfileuNoneurunu
SystemExitu
dump_statsuprint_stats(u	statementufilenameusortuprofuresult((u-/opt/alt/python33/lib64/python3.3/cProfile.pyuruns	
	cCstt�}d}z2y|j|||�}Wntk
r?YnXWd|dk	r`|j|�n|j|�}X|S(u�Run statement under profiler, supplying your own globals and locals,
    optionally saving results in filename.

    statement and filename have the same semantics as profile.run
    N(uProfileuNoneurunctxu
SystemExitu
dump_statsuprint_stats(u	statementuglobalsulocalsufilenameusortuprofuresult((u-/opt/alt/python33/lib64/python3.3/cProfile.pyurunctx's	
	cBsq|EeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS(uProfileuiProfile(custom_timer=None, time_unit=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, time_unit can
    be a float specifying a scale (i.e. how long each integer unit
    is, in seconds).
    icCs2ddl}|j|�j�j|�j�dS(Ni(upstatsuStatsu
strip_dirsu
sort_statsuprint_stats(uselfusortupstats((u-/opt/alt/python33/lib64/python3.3/cProfile.pyuprint_statsJsuProfile.print_statscCsFddl}t|d�}|j�|j|j|�|j�dS(Niuwb(umarshaluopenucreate_statsudumpustatsuclose(uselfufileumarshaluf((u-/opt/alt/python33/lib64/python3.3/cProfile.pyu
dump_statsNs

uProfile.dump_statscCs|j�|j�dS(N(udisableusnapshot_stats(uself((u-/opt/alt/python33/lib64/python3.3/cProfile.pyucreate_statsUs
uProfile.create_statscCs�|j�}i|_i}xz|D]r}t|j�}|j}||j}|j}|j}i}	|	|t|j�<|||||	f|j|<q"Wx�|D]�}|j	r�t|j�}x�|j	D]�}
y|t|
j�}	Wnt
k
r�w�YnX|
j}||
j}|
j}|
j}||	kru|	|}||d7}||d7}||d7}||d7}n||||f|	|<q�Wq�q�WdS(Niiii(ugetstatsustatsulabelucodeu	callcountureccallcountu
inlinetimeu	totaltimeuiducallsuKeyError(uselfuentriesucallersdictsuentryufuncuncuccuttuctucallersusubentryuprev((u-/opt/alt/python33/lib64/python3.3/cProfile.pyusnapshot_statsYs>	
	
		 
	
	
		
uProfile.snapshot_statscCs(ddl}|j}|j|||�S(Ni(u__main__u__dict__urunctx(uselfucmdu__main__udict((u-/opt/alt/python33/lib64/python3.3/cProfile.pyuruns	uProfile.runc
Cs0|j�zt|||�Wd|j�X|S(N(uenableuexecudisable(uselfucmduglobalsulocals((u-/opt/alt/python33/lib64/python3.3/cProfile.pyurunctx�s

uProfile.runctxc
Os-|j�z|||�SWd|j�XdS(N(uenableudisable(uselfufuncuargsukw((u-/opt/alt/python33/lib64/python3.3/cProfile.pyuruncall�s
uProfile.runcallNi����(u__name__u
__module__u__qualname__u__doc__uprint_statsu
dump_statsucreate_statsusnapshot_statsurunurunctxuruncall(u
__locals__((u-/opt/alt/python33/lib64/python3.3/cProfile.pyuProfile=s&	cCs6t|t�rdd|fS|j|j|jfSdS(Nu~i(u
isinstanceustruco_filenameuco_firstlinenouco_name(ucode((u-/opt/alt/python33/lib64/python3.3/cProfile.pyulabel�s
ulabelcCs�ddl}ddl}ddlm}d}|d|�}d|_|jddddd	d
dd�|jdd
ddd	ddd�|jdd�s�|j	�|j
d�n|j�\}}||jdd�<t|�dkr�|d}|j
jd|j
j|��t|d��}t|j�|d�}	WdQXi|d6dd6dd6dd6}
t|	|
d|j|j�n
|j	�|S(Ni(uOptionParseru@cProfile.py [-o output_file_path] [-s sort] scriptfile [arg] ...uusageu-ou	--outfileudestuoutfileuhelpuSave stats to <outfile>udefaultu-su--sortusortu?Sort order when printing to stdout, based on pstats.Stats classiiurbuexecu__file__u__main__u__name__u__package__u
__cached__Fi����(uosusysuoptparseuOptionParseruFalseuallow_interspersed_argsu
add_optionuNoneuargvuprint_usageuexitu
parse_argsulenupathuinsertudirnameuopenucompileureadurunctxuoutfileusort(uosusysuOptionParseruusageuparseruoptionsuargsuprognameufpucodeuglobs((u-/opt/alt/python33/lib64/python3.3/cProfile.pyumain�s8	




umainu__main__i����i����(u__doc__u__all__u_lsprofuNoneurunurunctxuProfileruProfileulabelumainu__name__(((u-/opt/alt/python33/lib64/python3.3/cProfile.pyu<module>sY$

Zerion Mini Shell 1.0