Edit File: cProfile.cpython-37.opt-1.pyc
B ����q}�cm������������������@���sz���d�Z�dddgZddlZddlZddd�Zddd�Zejj�e_�ejj�e_�G�d d��dej�Zd d��Z dd ��Z edkrve ���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/python37/lib64/python3.7/cProfile.pyr������s����c�������������C���s���t��t��|�||||�S�)N)r���r���r���r���)r����globals�localsr ���r ���r���r���r���r������s����c���������������@���sJ���e�Zd�ZdZddd�Zdd��Zdd��Zd d ��Zdd��Zd d��Z dd��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�d�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�)N)�disable�snapshot_stats)r���r���r���r���r���2���s����zProfile.create_statsc���������� ���C���s6��|�����}i�|�_i�}xX|D�]P}t|j�}|j}||j�}|j}|j}i�} | |t|j�<�||||| f|�j|<�qW�x�|D�]�}|j rrt|j�}x�|j D�]�} y|t| j��} W�n�t k r����w�Y�nX�| j}|| j�}| j}| j}|| k�r| |�}||d�7�}||d�7�}||d�7�}||d�7�}||||f| |<�q�W�qrW�d�S�)Nr���������������)Zgetstatsr����label�codeZ callcountZreccallcountZ inlinetimeZ totaltime�idZcalls�KeyError)r����entriesZcallersdicts�entry�funcZncZccZttZctZcallersZsubentry�prevr���r���r���r���6���s>���� zProfile.snapshot_statsc�������������C���s���dd�l�}|j}|��|||�S�)Nr���)�__main__�__dict__r���)r����cmdr)����dictr���r���r���r���\���s����zProfile.runc�������������C���s(���|������zt|||��W�d�|�����X�|�S�)N)�enable�execr���)r���r+���r ���r���r���r���r���r���a���s ���� zProfile.runctxc��������������O���sx���t�|��dkr|�^}}}�n>|�s&td��n0d|krB|�d�}|�^}}�ntdt�|��d����|����z ||�|�S�|����X�d�S�)Nr���z:descriptor 'runcall' of 'Profile' object needs an argumentr'���z7runcall expected at least 1 positional argument, got %dr���)�len� TypeError�popr-���r���)�args�kwr���r'���r���r���r����runcallj���s���� zProfile.runcallN)r���)�__name__� __module__�__qualname__�__doc__r���r���r���r���r���r���r4���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��<�t|�dk�rR|jr�d} |j|d�d�} nR|d�}|j�d|�j�|���t|d��}t|���|d�} W�d�Q�R�X�|dd�d�d�} 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���)rB���rC���rD����choicesz-m�module� store_truezProfile a library module)rB����actionrC���rD���r���r���z(run_module(modname, run_name='__main__'))� run_module�modname�rbr.���r)���)�__file__r5����__package__� __cached__)�os�sys�runpyr���Zoptparser?���Zallow_interspersed_argsZ add_option�sortedr���Zsort_arg_dict_default�argvZprint_usage�exit� parse_argsr/���rF���rI����path�insert�dirnamer����compile�readr���rA���r ���) rO���rP���rQ���r���r?���r@����parserZoptionsr2���r"���ZglobsZprogname�fpr���r���r����main����sJ���� r]���r)���)Nr���)Nr���)r8����__all__Z_lsprofZprofiler���r���r���ZProfilerr���r!���r]���r5���r���r���r���r����<module>���s��� d1