Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/__pycache__/ |
� �,ddY � � � 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 �./opt/alt/python311/lib64/python3.11/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: � ����O�O�H�%�%�%�%�%����T�"�"�"�"�"r N)�__name__� __module__�__qualname__�__doc__r r r r � r r r r ) sZ � � � � � �� � !� !� !�-� -� -�-� -� -�#� #� #� #� #r r ���c �T � t t � � � | ||� � S )a Run statement under profiler optionally saving results in filename This function takes a single argument that can be passed to the "exec" statement, and an optional file name. In all cases this routine attempts to "exec" its first argument and gather profiling statistics from the execution. If no file name is present, then this function automatically prints a simple profiling report, sorted by the standard name string (file/line/function-name) that is presented in each line. )r r r )r r r s r r r P s"