o
    ¹Ëh  ã                   @   sD   d dl mZ d dlmZ ddlmZ d
dee dee f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   Ú	libprotonÚget_context_depth)r   © r
   úR/var/www/html/scripts/venv/lib/python3.10/site-packages/triton/profiler/context.pyÚdepth   s   

r   N)r   )	Útypingr   Útriton._C.libprotonr   r   Úflagsr   Úintr   r
   r
   r
   r   Ú<module>   s     