Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-118915: Add document of PY_MONITORING_IS_INSTRUMENTED_EVENT
  • Loading branch information
Yuki Kobayashi committed Dec 17, 2024
commit dd4efac7d269feebc8fe9fc0e2c9bf02c28d462a
6 changes: 6 additions & 0 deletions Doc/c-api/monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,9 @@ would typically correspond to a python function.
.. c:function:: int PyMonitoring_ExitScope(void)

Exit the last scope that was entered with :c:func:`!PyMonitoring_EnterScope`.


.. c:function:: int PY_MONITORING_IS_INSTRUMENTED_EVENT(uint8_t ev)

Return true if the event corresponding to event ID *ev* is
a :ref:`local event <monitoring-event-local>`.
Comment thread
This conversation was marked as resolved.
Outdated
Comment thread
This conversation was marked as resolved.
2 changes: 2 additions & 0 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ events, use the expression ``PY_RETURN | PY_START``.

Events are divided into three groups:

.. _monitoring-event-local:

Local events
''''''''''''

Expand Down