OwlCyberSecurity - MANAGER
Edit File: cProfile.cpython-38.pyc
U ����i�fo����������������������@���s����d�Z�dddgZddlZddlZddlZddd�Zddd�Zejj�e_�ejj�e_�G�d d��dej�Z d d��Z dd ��Zedkr~e���dS�)zUPython interface for the 'lsprof' profiler. Compatible with the 'profile' module. �run�runctx�Profile�����N���c�����������������C���s���t��t��|�||�S��N)� _pyprofile�_Utilsr���r���)� statement�filename�sort��r����-/opt/alt/python38/lib64/python3.8/cProfile.pyr������s����c�����������������C���s���t��t��|�||||�S�r���)r���r���r���r���)r ����globals�localsr ���r���r���r���r ���r������s������c�������������������@���s`���e�Zd�ZdZddd�Zdd��Zdd��Zd d ��Zdd��Zd d��Z dd��Z de _dd��Zdd��Z dS�)r���a`��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). r���c�����������������C���s$���dd�l�}|�|������|�����d�S��Nr���)�pstats�StatsZ strip_dirsZ sort_stats�print_stats)�selfr���r���r���r���r ���r���)���s����zProfile.print_statsc�������������� ���C���s8���dd�l�}t|d��}|�����|�|�j|��W�5�Q�R�X�d�S�)Nr����wb)�marshal�open�create_stats�dump�stats)r����filer����fr���r���r ���� dump_stats-���s����zProfile.dump_statsc�����������������C���s���|������|�����d�S�r���)�disable�snapshot_stats�r���r���r���r ���r���3���s����zProfile.create_statsc�������������� ���C���s,��|�����}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��} W�n�t k r����Y�q�Y�nX�| j}|| j�}| j}| j}|| k�r| |�}||d�7�}||d�7�}||d�7�}||d�7�}||||f| |<�q�qld�S�)Nr���������������)Zgetstatsr����label�codeZ callcountZreccallcountZ inlinetimeZ totaltime�idZcalls�KeyError)r����entriesZcallersdicts�entry�funcZncZccZttZctZcallersZsubentry�prevr���r���r ���r���7���s>���� zProfile.snapshot_statsc�����������������C���s���dd�l�}|j}|��|||�S�r���)�__main__�__dict__r���)r����cmdr,����dictr���r���r ���r���]���s����zProfile.runc�����������������C���s(���|������zt|||��W�5�|�����X�|�S�r���)�enabler����exec)r���r.���r���r���r���r���r ���r���b���s ���� zProfile.runctxc������������������O���s����t�|��dkr|�^}}}�nV|�s&td��nHd|krZ|�d�}|�^}}�dd�l}|jdtdd��ntdt�|��d����|����z||�|�W��S�|����X�d�S�) Nr"���z:descriptor 'runcall' of 'Profile' object needs an argumentr*���r���z0Passing 'func' as keyword argument is deprecated)� stacklevelz7runcall expected at least 1 positional argument, got %dr!���)�len� TypeError�pop�warnings�warn�DeprecationWarningr0���r���)�args�kwr���r*���r6���r���r���r ����runcallk���s&���� �� �zProfile.runcallz($self, func, /, *args, **kw)c�����������������C���s���|������|�S�r���)r0���r ���r���r���r ���� __enter__����s����zProfile.__enter__c�����������������G���s���|������d�S�r���)r���)r����exc_infor���r���r ����__exit__����s����zProfile.__exit__N)r���)�__name__� __module__�__qualname__�__doc__r���r���r���r���r���r���r;����__text_signature__r<���r>���r���r���r���r ���r������s��� & c�����������������C���s(���t�|�t�rdd|�fS�|�j|�j|�jfS�d�S�)N�~r���)� isinstance�str�co_filename�co_firstlineno�co_name)r%���r���r���r ���r$�������s���� r$���c��������������� ���C���s���dd�l�}�dd�l}dd�l}dd�l}ddlm}�d}||d�}d|_|jdddd d�d ��|jddd ddt|j j �d��|jdddddd��|jdd���s�|����|� d��|���\}}||jd�d��<�|jd�k r�|�j�|j�|_t|�dk�r�|j�rd} |j|d�d�} nR|d�}|j�d|�j�|���t�|��}t|���|d�} W�5�Q�R�X�|dd�d�d�} zt| | d�|j|j��W�n6�tk �r��} �zd�|_|� | j��W�5�d�} ~ X�Y�nX�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���)rM���rN���rO����choicesz-m�module� store_truezProfile a library module)rM����actionrN���rO���r!���r"���z(run_module(modname, run_name='__main__'))� run_module�modnamer1���r,���)�__file__r?����__package__� __cached__) �os�sys�runpyr���ZoptparserJ���Zallow_interspersed_argsZ add_option�sortedr���Zsort_arg_dict_default�argvZprint_usage�exit� parse_argsrL����path�abspathr3���rQ���rT����insert�dirname�io� open_code�compile�readr���r����BrokenPipeError�stdout�errno)rY���rZ���r[���r���rJ���rK����parserZoptionsr9���r%���ZglobsZprogname�fp�excr���r���r ����main����sd���� �� � �� �� rn���r,���)Nr���)Nr���) rB����__all__Z_lsprofrd���Zprofiler���r���r���ZProfilerr���r$���rn���r?���r���r���r���r ����<module>���s��� o;