Skip to content

Commit f819900

Browse files
authored
gh-118915: Document PY_MONITORING_IS_INSTRUMENTED_EVENT (GH-128026)
1 parent 49234c0 commit f819900

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Doc/c-api/monitoring.rst

+12
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,15 @@ would typically correspond to a python function.
196196
.. c:function:: int PyMonitoring_ExitScope(void)
197197
198198
Exit the last scope that was entered with :c:func:`!PyMonitoring_EnterScope`.
199+
200+
201+
.. c:function:: int PY_MONITORING_IS_INSTRUMENTED_EVENT(uint8_t ev)
202+
203+
Return true if the event corresponding to the event ID *ev* is
204+
a :ref:`local event <monitoring-event-local>`.
205+
206+
.. versionadded:: 3.13
207+
208+
.. deprecated:: next
209+
210+
This function is :term:`soft deprecated`.

Doc/library/sys.monitoring.rst

+2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ events, use the expression ``PY_RETURN | PY_START``.
173173

174174
Events are divided into three groups:
175175

176+
.. _monitoring-event-local:
177+
176178
Local events
177179
''''''''''''
178180

0 commit comments

Comments
 (0)