Skip to content

Commit dd4efac

Browse files
author
Yuki Kobayashi
committed
gh-118915: Add document of PY_MONITORING_IS_INSTRUMENTED_EVENT
1 parent 7303f06 commit dd4efac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/c-api/monitoring.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,9 @@ would typically correspond to a python function.
190190
.. c:function:: int PyMonitoring_ExitScope(void)
191191
192192
Exit the last scope that was entered with :c:func:`!PyMonitoring_EnterScope`.
193+
194+
195+
.. c:function:: int PY_MONITORING_IS_INSTRUMENTED_EVENT(uint8_t ev)
196+
197+
Return true if the event corresponding to event ID *ev* is
198+
a :ref:`local event <monitoring-event-local>`.

Doc/library/sys.monitoring.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ events, use the expression ``PY_RETURN | PY_START``.
165165

166166
Events are divided into three groups:
167167

168+
.. _monitoring-event-local:
169+
168170
Local events
169171
''''''''''''
170172

0 commit comments

Comments
 (0)