Mark Shannon
52fbcf61b5
GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725)
2023-08-09 09:30:50 +01:00
Mark Shannon
ac7a0f858a
GH-106898: Add the exception as an argument to the `PY_UNWIND` event callback function. (GH-107347)
2023-07-27 15:47:33 +01:00
Mark Shannon
c6539b36c1
GH-106895: Raise a `ValueError` when attempting to disable events that cannot be disabled. (GH-107337)
2023-07-27 15:27:11 +01:00
Mark Shannon
766d2518ae
GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291)
...
* Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event.
2023-07-27 13:32:30 +01:00
Mark Shannon
0689340366
GH-105229: Replace some superinstructions with single instruction equivalent. (GH-105230)
2023-06-05 11:07:04 +01:00
Mark Shannon
601ae09f0c
GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. (GH-105187)
2023-06-02 10:39:38 +01:00
Carl Meyer
f40890b124
gh-103865: add monitoring support to LOAD_SUPER_ATTR ( #103866 )
2023-05-16 10:29:00 -06:00
Mark Shannon
45f5aa8fc7
GH-103082: Filter LINE events in VM, to simplify tool implementation. (GH-104387)
...
When monitoring LINE events, instrument all instructions that can have a predecessor on a different line.
Then check that the a new line has been hit in the instrumentation code.
This brings the behavior closer to that of 3.11, simplifying implementation and porting of tools.
2023-05-12 12:21:20 +01:00
Tian Gao
bcea36f8db
gh-103845: Remove line & instruction instrumentations before adding them back (GH-103851)
2023-05-03 10:51:47 +01:00
Mark Shannon
70e0a28bed
GH-103082: Turn on branch events for FOR_ITER instructions. ( #103507 )
...
Turn on branch events for FOR_ITER instructions.
2023-04-13 13:56:09 +01:00
Mark Shannon
411b169281
GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython (GH-103083)
...
* The majority of the monitoring code is in instrumentation.c
* The new instrumentation bytecodes are in bytecodes.c
* legacy_tracing.c adapts the new API to the old sys.setrace and sys.setprofile APIs
2023-04-12 12:04:55 +01:00