File: D:/Python311/Lib/__pycache__/profile.cpython-311.pyc
�
��Vc�[ � � � d Z ddlZddlZddlZg d�Z G d� d� � Zd
d�Zd
d�Z G d � d
� � Zd� Z e
dk r e � � dS dS )z Class for profiling Python code.� N)�run�runctx�Profilec �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�_Utilsz�Support class for utility functions which are shared by
profile.py and cProfile.py modules.
Not supposed to be used directly.
c � � || _ d S �N)�profiler)�selfr
s �D:\Python311\Lib\profile.py�__init__z_Utils.__init__/ s
� � ��
�
�
� c �� � | � � � } |� |� � n# t $ r Y nw xY w| � |||� � d S # | � |||� � w xY wr )r
r �
SystemExit�_show)r � statement�filename�sort�profs r r z
_Utils.run2 s� � ��}�}���� -��H�H�Y������� � � ��D� ����
�J�J�t�X�t�,�,�,�,�,��D�J�J�t�X�t�,�,�,�,���s! �, �A �
9�A �9�A �A.c �� � | � � � } |� |||� � n# t $ r Y nw xY w| � |||� � d S # | � |||� � w xY wr )r
r r r )r r �globals�localsr r r s r r z
_Utils.runctx; s� � ��}�}���� -��K�K� �7�F�3�3�3�3��� � � ��D� ����
�J�J�t�X�t�,�,�,�,�,��D�J�J�t�X�t�,�,�,�,���s! �. �A �
;�A �;�A �A0c �b � |�|� |� � d S |� |� � d S r )�
dump_stats�print_stats)r r r r s r r z_Utils._showD s<