o 0ipY @ sz d Z ddlZddlZddlZddlZg dZG dd dZdddZdd d ZG dd dZ d d Z edkr;e dS dS )z Class for profiling Python code. N)runrunctxProfilec @ s0 e Zd ZdZdd Zdd Zdd Zdd Zd S )_UtilszSupport class for utility functions which are shared by profile.py and cProfile.py modules. Not supposed to be used directly. c C s || _ d S N)profiler)selfr r ./opt/alt/python310/lib64/python3.10/profile.py__init__0 z_Utils.__init__c C sd | }z%z|| W n ty Y nw W | ||| d S W | ||| d S | ||| w r )r r SystemExit_show)r statementfilenamesortprofr r r r 3 s "z _Utils.runc C sh | }z'z |||| W n ty Y nw W | ||| d S W | ||| d S | ||| w r )r r r r )r r globalslocalsr r r r r r r <