ok

Mini Shell

Direktori : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/cProfile.cpython-35.opt-2.pyc



���]��@s�dddgZddlZddlZdddd�Zdddd�Zejje_ejje_Gdd�dej�Zd	d
�Z	dd�Z
ed
kr�e
�dS)�run�runctx�Profile�N�cCstjt�j|||�S)N)�
_pyprofile�_Utilsrr)�	statement�filename�sort�r�-/opt/alt/python35/lib64/python3.5/cProfile.pyrscCs"tjt�j|||||�S)N)rrrr)r�globals�localsr	r
rrrrsc@sgeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)rrcCs2ddl}|j|�j�j|�j�dS)Nr)�pstatsZStatsZ
strip_dirsZ
sort_stats�print_stats)�selfr
rrrrr(szProfile.print_statsc
CsFddl}t|d��$}|j�|j|j|�WdQRXdS)Nr�wb)�marshal�open�create_stats�dump�stats)r�filer�frrr�
dump_stats,s
zProfile.dump_statscCs|j�|j�dS)N)�disable�snapshot_stats)rrrrr2s
zProfile.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}||	krr|	|}||d7}||d7}||d7}||d7}||||f|	|<q�Wq�WdS)Nrr��)Zgetstatsr�label�codeZ	callcountZreccallcountZ
inlinetimeZ	totaltime�idZcalls�KeyError)r�entriesZcallersdicts�entry�funcZncZcc�tt�ctZcallersZsubentry�prevrrrr6s>	
	
		 
	
	
		
zProfile.snapshot_statscCs(ddl}|j}|j|||�S)Nr)�__main__�__dict__r)r�cmdr)�dictrrrr\s	zProfile.runc
Cs0|j�zt|||�Wd|j�X|S)N)�enable�execr)rr+r
rrrrras

zProfile.runctxc
Os-|j�z|||�SWd|j�XdS)N)r-r)rr%�args�kwrrr�runcalljs
zProfile.runcallN���)
�__name__�
__module__�__qualname__rrrrrrr1rrrrrs
&	cCs6t|t�rdd|fS|j|j|jfSdS)N�~r)�
isinstance�str�co_filename�co_firstlineno�co_name)r rrrrss
rcCs�ddl}ddl}ddlm}d}|d|�}d|_|jdddd	d
ddd�|jd
dddd
ddd�|jdd�s�|j�|jd�|j	�\}}||jdd�<t
|�dkr�|d}|jjd|jj
|��t|d��}t|j�|d�}	WdQRXd|ddddddi}
t|	|
d|j|j�n
|j�|S)Nr)�OptionParserz@cProfile.py [-o output_file_path] [-s sort] scriptfile [arg] ...�usageFz-oz	--outfile�dest�outfile�helpzSave stats to <outfile>�defaultz-sz--sortr
z?Sort order when printing to stdout, based on pstats.Stats classrr�rbr.�__file__r3r)�__package__�
__cached__r2)�os�sysZoptparser<Zallow_interspersed_argsZ
add_option�argv�print_usage�exit�
parse_args�len�path�insert�dirnamer�compile�readrr?r
)rFrGr<r=�parser�optionsr/Zprogname�fpr Zglobsrrr�main{s6	




rUr)r2r2)�__all__Z_lsprofZprofilerrr�__doc__ZProfilerrrrUr3rrrr�<module>sX$

Zerion Mini Shell 1.0