Skip to content

Commit

Permalink
pythongh-118915: Add document of PY_MONITORING_IS_INSTRUMENTED_EVENT
Browse files Browse the repository at this point in the history
  • Loading branch information
koyuki7w committed Dec 17, 2024
1 parent 7303f06 commit dd4efac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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>`.
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

0 comments on commit dd4efac

Please sign in to comment.