a
    kº”h  ã                   @   sB   d dl mZ d dlmZ ddlmZ d	ee ee dœdd„ZdS )
é    )ÚOptional)Úprotoné   )Úget_profiling_on)ÚsessionÚreturnc                 C   s   t ƒ s
dS t | ¡S )zé
    Get the depth of the context.

    Args:
        session (int): The session ID of the profiling session. Defaults to 0.

    Returns:
        depth (int or None): The depth of the context. If profiling is off, returns None.
    N)r   Ú	libprotonZget_context_depth)r   © r	   úE/var/www/auris/lib/python3.9/site-packages/triton/profiler/context.pyÚdepth   s    
r   N)r   )	Útypingr   Ztriton._C.libprotonr   r   Úflagsr   Úintr   r	   r	   r	   r
   Ú<module>   s   