CasperSecurity

Current Path : /usr/lib/python3.10/__pycache__/
Upload File :
Current File : //usr/lib/python3.10/__pycache__/cProfile.cpython-310.pyc

o

`�wi��@s�dZgd�ZddlZddlZddlZddd�Zddd�Zejje_ejje_Gd	d
�d
ej�Z	dd�Z
d
d�Zedkr@e�dSdS)zUPython interface for the 'lsprof' profiler.
   Compatible with the 'profile' module.
)�run�runctx�Profile�N���cCst�t��|||�S�N)�
_pyprofile�_Utilsrr)�	statement�filename�sort�r�/usr/lib/python3.10/cProfile.pyrsrcCst�t��|||||�Sr)rrrr)r	�globals�localsr
rrrr
rs�rc@sZeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Z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}|�|����|���dS�Nr)�pstats�Stats�
strip_dirs�
sort_stats�print_stats)�selfrrrrr
r)szProfile.print_statscCsNddl}t|d��}|��|�|j|�Wd�dS1s wYdS)Nr�wb)�marshal�open�create_stats�dump�stats)r�filer�frrr
�
dump_stats-s
"�zProfile.dump_statscCs|��|��dSr)�disable�snapshot_stats�rrrr
r3szProfile.create_statsc
Cs$|��}i|_i}|D](}t|j�}|j}||j}|j}|j}i}	|	|t|j�<|||||	f|j|<q|D]Y}|j	r�t|j�}|j	D]K}
z	|t|
j�}	Wn	t
yWYqCw|
j}||
j}|
j}|
j}||	vr�|	|}||d7}||d7}||d7}||d7}||||f|	|<qCq6dS)Nr���)�getstatsr�label�code�	callcount�reccallcount�
inlinetime�	totaltime�id�calls�KeyError)r�entries�callersdicts�entry�func�nc�cc�tt�ct�callers�subentry�prevrrr
r!7sD



�
��zProfile.snapshot_statscCsddl}|j}|�|||�Sr)�__main__�__dict__r)r�cmdr;�dictrrr
r]szProfile.runcCs.|��z
t|||�W|��|S|��wr)�enable�execr )rr=rrrrr
rbs
�zProfile.runctxcOs,|��z||i|��W|��S|��wr)r?r )rr3�args�kwrrr
�runcallkszProfile.runcallcCs|��|Sr)r?r"rrr
�	__enter__rszProfile.__enter__cGs|��dSr)r )r�exc_inforrr
�__exit__vszProfile.__exit__N)r)
�__name__�
__module__�__qualname__�__doc__rrrr!rrrCrDrFrrrr
rs
&	rcCs$t|t�r
dd|fS|j|j|jfS)N�~r)�
isinstance�str�co_filename�co_firstlineno�co_name)r(rrr
r'{s

r'c
Cs�ddl}ddl}ddl}ddl}ddlm}d}||d�}d|_|jdddd	dd
�|jddd
ddt|j	j
�d�|jdddddd�|jdd�sS|��|�
d�|��\}}||jdd�<|jdurm|j�|j�|_t|�dkr�|jr�d}	|j|dd�}
n3|d}|j�d|j�|��t�|��}t|��|d�}	Wd�n1s�wY|dddd�}
z
t|	|
d|j|j�W|Sty�}
zd|_|�
|
j�WYd}
~
|Sd}
~
ww|��|S)Nr)�OptionParserzNcProfile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ...)�usageFz-oz	--outfile�outfilezSave stats to <outfile>)�dest�help�defaultz-sz--sortrz?Sort order when printing to stdout, based on pstats.Stats classr)rTrUrV�choicesz-m�module�
store_truezProfile a library module)rT�actionrUrVr#r$z(run_module(modname, run_name='__main__'))�
run_module�modnamer@r;)�__file__rG�__package__�
__cached__) �os�sys�runpyr�optparserQ�allow_interspersed_args�
add_option�sortedr�sort_arg_dict_default�argv�print_usage�exit�
parse_argsrS�path�abspath�lenrXr[�insert�dirname�io�	open_code�compile�readrr�BrokenPipeError�stdout�errno)r`rarbrrQrR�parser�optionsrAr(�globs�progname�fp�excrrr
�main�sj

�

�
�

������r~r;)Nr)
rJ�__all__�_lsprofrq�profilerrr�Profilerrr'r~rGrrrr
�<module>s



_;
�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY