Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
sqlalchemy
/
testing
/
__pycache__
[ HOME ]
Exec
Submit
profiling.cpython-311.pyc
� $Q�e4z`P� �� � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddl mZ ddlZn # e $ r dZY nw xY wdZdZ G d� d e� � Zd d�Zej dd�� � ZdS )z�Profiling support for unit and performance tests. These are special purpose profiling methods which operate in a more fine-grained way than nose's profiling plugin. � N� )�config)� gc_collect� ��update_wrapperc �R � e Zd ZdZd� Zed� � � Zd� Zd� Zd� Z d� Z d� Zd � Zd S )�ProfileStatsFilez�Store per-platform/fn profiling results in a file. We're still targeting Py2.5, 2.4 on 0.7 with no dependencies, so no json lib :( need to roll something silly c �� � t j d uot j j | _ | j pt j d uot j j | _ t j � |� � | _ t j � | j � � d | _ t j d� � � | _ | � � � | j r| � � � d S d S )N���c �4 � t j t � � S �N)�collections�defaultdict�dict� � �o/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib64/python3.11/site-packages/sqlalchemy/testing/profiling.py�<lambda>z+ProfileStatsFile.__init__.<locals>.<lambda>8 s � �K�+�D�1�1� r )r �options�force_write_profiles�force_write�write_profiles�write�os�path�abspath�fname�split�short_fnamer r �data�_read�_write)�self�filenames r �__init__zProfileStatsFile.__init__. s� � ��N�$�&�N�6�>�+N� �� �%� ��N�$�&�H�6�>�+H� � � �W�_�_�X�.�.�� ��7�=�=���4�4�R�8����+�1�1� � �� � � � �����:� � �K�K�M�M�M�M�M� � r c � � t j j dz t j j z }t j j dk r8t j j � t j j � � r|dz }d� d� t j dd� D � � � � }t j � � t j � � � � � t j � � � � � ||g}|� t j j j rdnd � � t j � � � }|� |rd pd� � d� |� � S )N�_�sqlite�_file�.c �, � g | ]}t |� � ��S r ��str)�.0�vs r � <listcomp>z1ProfileStatsFile.platform_key.<locals>.<listcomp>K s � �E�E�E�!�s�1�v�v�E�E�Er r r � nativeunicode�dbapiunicode�cextensions� nocextensions)r �db�name�driver�dialect�_is_url_file_db�url�join�sys�version_info�platform�machine�system�lower�python_implementation�append�convert_unicode�requirements�_has_cextensions)r$ � dbapi_key� py_version�platform_tokens� _has_cexts r �platform_keyzProfileStatsFile.platform_key@ sG � � �I�N�S�(�6�9�+;�;� ��9�>�X�%�%�&�)�*;�*K�*K��I�M�+ � + �%� �� �I� �X�X�E�E�s�/?��!��/D�E�E�E�F�F� � �����O���#�#�%�%��*�,�,�2�2�4�4��� �� ����y� �0� �O�O�� � � � �'�8�8�:�:� ����y�:�]�M�o�N�N�N��x�x��(�(�(r c �J � t }|| j v o| j | j | v S r )� _current_testr! rL )r$ �test_keys r � has_statszProfileStatsFile.has_stats^ s* � � ���� �!�N�d�&7�4�9�X�;N�&N� r c �h � t }| j | }|| j }d|vrg x|d<