Skip to content

Commit 0438389

Browse files
committed
document PyMonitoringState
1 parent 5162a03 commit 0438389

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/c-api/monitoring.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ include a ``PyObject*`` representing the code object, the instruction offset
1919
and sometimes additional, event-specific arguments (see :mod:`sys.monitoring`
2020
for details about the signatures of the different event callbacks).
2121

22+
.. c:type:: PyMonitoringState
23+
24+
Representation of the state of an event type. It is allocated by the user
25+
while its contents are maintained by the monitoring API functions described below.
26+
27+
2228
All of the functions below return 0 on success and -1 on error.
2329

2430
.. c:function:: int PyMonitoring_FirePyStartEvent(PyMonitoringState *state, PyObject *codelike, int32_t offset)

0 commit comments

Comments
 (0)