o
    D«Ïiú  ã                   @   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é   )ÚflagsÚsessionÚreturnc                 C   s   t j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   Úprofiling_onÚ	libprotonÚget_context_depth)r   © r   úa/var/www/addictedbytheproject.nl/epg/venv/lib/python3.10/site-packages/triton/profiler/context.pyÚdepth   s   

r   N)r   )Útypingr   Útriton._C.libprotonr   r	   r   Úintr   r   r   r   r   Ú<module>   s     