Hacked By AnonymousFox
�
c��f� � �� � d Z g d�ZddlZddlZddlZdd�Zdd�Zej j e_ ej j e_ G d� dej � � Z d � Z
d
� Zedk r e� � dS dS )
zUPython interface for the 'lsprof' profiler.
Compatible with the 'profile' module.
)�run�runctx�Profile� N���c �^ � t j t � � � | ||� � S �N)�
_pyprofile�_Utilsr r )� statement�filename�sorts �//opt/alt/python311/lib64/python3.11/cProfile.pyr r s% � ���W�%�%�)�)�)�X�t�D�D�D� c �b � t j t � � � | ||||� � S r )r r
r r )r �globals�localsr r
s r r r s0 � ���W�%�%�,�,�Y���-5�t�=� =� =r c �J � e Zd ZdZd
d�Zd� Zd� Zd� Zd� Zd� Z d � Z
d
� Zd� ZdS )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 � � dd l }|� | � � � � � � |� � � � � d S �Nr )�pstats�Stats�
strip_dirs�
sort_stats�print_stats)�selfr
r s r r zProfile.print_stats) sI � ��
�
�
����T���%�%�'�'�2�2�4�8�8�D�D�F�F�F�F�Fr c � � dd l }t |d� � 5 }| � � � |� | j |� � d d d � � d S # 1 swxY w Y d S )Nr �wb)�marshal�open�create_stats�dump�stats)r �filer �fs r �
dump_statszProfile.dump_stats- s� � �����
�$��
�
� (���������L�L���Q�'�'�'� (� (� (� (� (� (� (� (� (� (� (� (���� (� (� (� (� (� (s �0A�A�Ac �V � | � � � | � � � d S r )�disable�snapshot_stats�r s r r zProfile.create_stats3 s'