#include "parts.h"
#include "util.h"
#include "monitoring.h"
#define Py_BUILD_CORE
#include "internal/pycore_instruments.h"
PyCodeLikeObject;
static PyObject *
CodeLike_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{ … }
static void
CodeLike_dealloc(PyCodeLikeObject *self)
{ … }
static PyObject *
CodeLike_str(PyCodeLikeObject *self)
{ … }
static PyTypeObject PyCodeLike_Type = …;
#define RAISE_UNLESS_CODELIKE(v) …
static PyMonitoringState *
setup_fire(PyObject *codelike, int offset, PyObject *exc)
{ … }
static int
teardown_fire(int res, PyMonitoringState *state, PyObject *exception)
{ … }
static PyObject *
fire_event_py_start(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_py_resume(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_py_return(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_c_return(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_py_yield(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_call(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_line(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_jump(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_branch(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_py_throw(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_raise(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_c_raise(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_reraise(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_exception_handled(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_py_unwind(PyObject *self, PyObject *args)
{ … }
static PyObject *
fire_event_stop_iteration(PyObject *self, PyObject *args)
{ … }
static PyObject *
enter_scope(PyObject *self, PyObject *args)
{ … }
static PyObject *
exit_scope(PyObject *self, PyObject *args)
{ … }
static PyMethodDef TestMethods[] = …;
int
_PyTestCapi_Init_Monitoring(PyObject *m)
{ … }