+
    ‹°³jJ  ã                   ó‚   € ^ RI Ht ^ RIHt ^ RIt^RIHt RR R lltRR R lltRR	 R
 llt	RR R llt
RR R lltR# )é    )ÚOptional)ÚprotonN)Úflagsc                óF   € V ^8„  d   QhR\         \        ,          R\        /# ©é   ÚsessionÚphase©r   Úint)Úformats   "ÚU/home/luca/screen-checking/.venv/lib/python3.14/site-packages/triton/profiler/data.pyÚ__annotate__r      s   € ÷ :ñ :”œ#•ð :¬3ñ :ó    c                ó²   € V f   R# \         P                  '       d   V ^ 8w  d   \        R4      h\        P                  ! \
        P                  ! W4      4      # )zÓ
Retrieves profiling data for a given session.

Args:
    session (Optional[int]): The session ID of the profiling session, or None if profiling is inactive.
Returns:
    str: The profiling data in JSON format.
NúEOnly one session can be retrieved when running from the command line.)r   Úcommand_lineÚ
ValueErrorÚjsonÚloadsÚ	libprotonÚget_data©r	   r
   s   &&r   Úgetr      sD   € ð ‚ÙÜ××Ð˜g¨œlÜÐ`ÓaÐaÜ�:Š:”i×(Ò(¨Ó8Ó9Ð9r   c                óF   € V ^8„  d   QhR\         \        ,          R\        /# r   r   )r   s   "r   r   r      s   € ÷ 6ñ 6œ¤#�ð 6´3ñ 6r   c                óŠ   € V f   R# \         P                  '       d   V ^ 8w  d   \        R4      h\        P                  ! W4      # )zù
Retrieves profiling data for a given session encoded with MessagePack.

Args:
    session (Optional[int]): The session ID of the profiling session, or None if profiling is inactive.

Returns:
    bytes: The profiling data encoded with MessagePack.
Nr   )r   r   r   r   Úget_data_msgpackr   s   &&r   Úget_msgpackr      s;   € ð ‚ÙÜ××Ð˜g¨œlÜÐ`ÓaÐaÜ×%Ò% gÓ5Ð5r   c                ó\   € V ^8„  d   QhR\         \        ,          R\         \        ,          /# )r   r	   Úreturnr   )r   s   "r   r   r   (   s"   € ÷ 1ñ 1œ8¤C�=ð 1´¼#µñ 1r   c                óŠ   € V f   R# \         P                  '       d   V ^ 8w  d   \        R4      h\        P                  ! V 4      # )zæ
Advances the profiling phase for a given session.

Args:
    session (Optional[int]): The session ID of the profiling session, or None if profiling is inactive.

Returns:
    Optional[int]: The next phase number after advancing.
NzFOnly one session can advance phase when running from the command line.)r   r   r   r   Úadvance_data_phase)r	   s   &r   Úadvance_phaser#   (   s;   € ð ‚ÙÜ××Ð˜g¨œlÜÐaÓbÐbÜ×'Ò'¨Ó0Ð0r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# )r   r	   r
   r    ©r   r   Úbool)r   s   "r   r   r   9   s%   € ÷ <ñ <œx¬�}ð <¼ð <ÄTñ <r   c                óŠ   € V f   R# \         P                  '       d   V ^ 8w  d   \        R4      h\        P                  ! W4      # )aä  
Checks if the profiling data for a given session and phase is complete.

A "complete" phase is safe to read/clear because all device-side records for
the phase have been flushed to the host and the phase will no longer receive
new records.

Args:
    session (Optional[int]): The session ID of the profiling session, or None if profiling is inactive.
    phase (int): The phase number to check. Defaults to 0.

Returns:
    bool: True if the phase data is complete, False otherwise.
FzVOnly one session can check phase completion status when running from the command line.)r   r   r   r   Úis_data_phase_completer   s   &&r   Úis_phase_completer)   9   s;   € ð ‚ÙÜ××Ð˜g¨œlÜÐqÓrÐrÜ×+Ò+¨GÓ;Ð;r   c                óV   € V ^8„  d   QhR\         \        ,          R\        R\        RR/# )r   r	   r
   Úclear_up_to_phaser    Nr%   )r   s   "r   r   r   O   s4   € ÷ <ñ <Ü”c�]ð<äð<ô ð<ð 
ñ	<r   c                ó�   € V f   R# \         P                  '       d   V ^ 8w  d   \        R4      h\        P                  ! WV4       R# )a+  
Clears profiling data for a given session.

Args:
    session (Optional[int]): The session ID of the profiling session, or None if profiling is inactive.
    phase (int): The phase number to clear. Defaults to 0.
    clear_up_to_phase (bool): If True, clear all phases up to and including `phase`.
NzCOnly one session can be cleared when running from the command line.)r   r   r   r   Ú
clear_data)r	   r
   r+   s   &&&r   Úclearr.   O   s;   € ð ‚ÙÜ××Ð˜g¨œlÜÐ^Ó_Ð_Ü×Ò˜Ð):Ö;r   )r   r   )r   )r   r   F)Útypingr   Útriton._C.libprotonr   r   r   r   r   r   r#   r)   r.   © r   r   Ú<module>r2      s/   ðÝ Ý 3Û Ý ÷:÷ 6÷"1÷"<÷,<ñ <r   