Skip to content

Commit 49efc41

Browse files
[3.13] gh-118915: Document PY_MONITORING_IS_INSTRUMENTED_EVENT (GH-128026) (GH-131424)
(cherry picked from commit f819900) Co-authored-by: Yuki Kobayashi <[email protected]>
1 parent b39e673 commit 49efc41

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
@@ -190,3 +190,15 @@ 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 the event ID *ev* is
198+
a :ref:`local event <monitoring-event-local>`.
199+
200+
.. versionadded:: 3.13
201+
202+
.. deprecated:: next
203+
204+
This function is :term:`soft deprecated`.

Doc/library/sys.monitoring.rst

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

168168
Events are divided into three groups:
169169

170+
.. _monitoring-event-local:
171+
170172
Local events
171173
''''''''''''
172174

0 commit comments

Comments
 (0)