HEX
Server: Apache/2.4.62 (Debian)
System: Linux MIA-VPS-VM01781 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User: webmaster (1001)
PHP: 8.2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3.7/__pycache__/cProfile.cpython-37.pyc
B

U��e��@szdZdddgZddlZddlZddd�Zddd�Zejje_ejje_Gd	d�dej�Zd
d�Z	dd
�Z
edkrve
�dS)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.7/cProfile.pyrscCst�t��|||||�S)N)rrrr)r�globals�localsr	r
rrrrsc@sJeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�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�StatsZ
strip_dirsZ
sort_stats�print_stats)�selfr
rrrrr(szProfile.print_statsc	Cs8ddl}t|d��}|��|�|j|�WdQRXdS)Nr�wb)�marshal�open�create_stats�dump�stats)r�filer�frrr�
dump_stats,szProfile.dump_statscCs|��|��dS)N)�disable�snapshot_stats)rrrrr2szProfile.create_statsc
Cs6|��}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
r�w�YnX|
j}||
j}|
j}|
j}||	k�r|	|}||d7}||d7}||d7}||d7}||||f|	|<q�WqrWdS)Nr���)Zgetstatsr�label�codeZ	callcountZreccallcountZ
inlinetimeZ	totaltime�idZcalls�KeyError)r�entriesZcallersdicts�entry�funcZncZccZttZctZcallersZsubentry�prevrrrr6s>






zProfile.snapshot_statscCsddl}|j}|�|||�S)Nr)�__main__�__dict__r)r�cmdr)�dictrrrr\szProfile.runcCs(|��zt|||�Wd|��X|S)N)�enable�execr)rr+r
rrrrras

zProfile.runctxcOs"|��z
|||�S|��XdS)N)r-r)rr'�args�kwrrr�runcalljs
zProfile.runcallN)r)�__name__�
__module__�__qualname__�__doc__rrrrrrr1rrrrrs
&	cCs(t|t�rdd|fS|j|j|jfSdS)N�~r)�
isinstance�str�co_filename�co_firstlineno�co_name)r"rrrr!ss

r!c
	Cs^ddl}ddl}ddl}ddl}ddlm}d}||d�}d|_|jdddd	dd
�|jddd
ddt|j	j
�d�|jdddddd�|jdd�s�|��|�
d�|��\}}||jdd�<t|�dk�rR|jr�d}	|j|dd�}
nR|d}|j�d|j�|��t|d��}t|��|d�}	WdQRX|dddd�}
t|	|
d|j|j�n|��|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--sortr
z?Sort order when printing to stdout, based on pstats.Stats classr)r?r@rA�choicesz-m�module�
store_truezProfile a library module)r?�actionr@rArrz(run_module(modname, run_name='__main__'))�
run_module�modname�rbr.r))�__file__r2�__package__�
__cached__)�os�sys�runpyrZoptparser<Zallow_interspersed_argsZ
add_option�sortedrZsort_arg_dict_default�argvZprint_usage�exit�
parse_args�lenrCrF�path�insert�dirnamer�compile�readrr>r
)
rLrMrNrr<r=�parserZoptionsr/r"ZglobsZprogname�fprrr�main{sJ






r[r))Nr)Nr)r5�__all__Z_lsprofZprofilerrrZProfilerrr!r[r2rrrr�<module>s




X1