| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| ((ev) <= PY_MONITORING_EVENT_STOP_ITERATION) | ||
|
|
||
| #define PY_MONITORING_EVENT_PY_UNWIND 11 | ||
|
|
||
| #define PY_MONITORING_IS_LOCAL_EVENT(ev) \ | ||
| ((ev) < _PY_MONITORING_LOCAL_EVENTS) | ||
|
|
There was a problem hiding this comment.
IMO all these data should be encoded in a "table", e.g.
typedef struct _monitoring_event {
int id;
bool local;
bool instrumented;
char* name; // maybe
} monitoring_event_t;
monitoring_event_t MONITORING_EVENTS[] = { ... };
#define PY_MONITORING_IS_INSTRUMENTED_EVENT(ev) (MONITORING_EVENTS[ev].instrumented)
Sorry, something went wrong.
We make the PY_UNWIND monitoring event available as a code-local event to allow trapping on function exit events when an exception bubbles up. This complements the PY_RETURN event by allowing to catch any function exit event.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
We make the PY_UNWIND monitoring event available as a code-local event to allow trapping on function exit events when an exception bubbles up. This complements the PY_RETURN event by allowing to catch any function exit event.
Example