]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython (GH-103083)
authorMark Shannon <mark@hotpy.org>
Wed, 12 Apr 2023 11:04:55 +0000 (12:04 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2023 11:04:55 +0000 (12:04 +0100)
commit411b1692811b2ecac59cb0df0f920861c7cf179a
tree64f7234e9d35623565ff1bb7fbd2c4688e8d3774
parentdce2d38cb04b541bad477ccc1040a68fa70a9a69
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
44 files changed:
Include/cpython/code.h
Include/cpython/pystate.h
Include/internal/pycore_code.h
Include/internal/pycore_frame.h
Include/internal/pycore_instruments.h [new file with mode: 0644]
Include/internal/pycore_interp.h
Include/internal/pycore_opcode.h
Include/internal/pycore_pystate.h
Include/opcode.h
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test__opcode.py
Lib/test/test_bdb.py
Lib/test/test_code.py
Lib/test/test_dis.py
Lib/test/test_monitoring.py [new file with mode: 0644]
Lib/test/test_sys.py
Lib/test/test_sys_settrace.py
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2023-03-31-17-24-03.gh-issue-103082.isRUcV.rst [new file with mode: 0644]
Objects/codeobject.c
Objects/frameobject.c
Objects/object.c
PCbuild/_freeze_module.vcxproj
PCbuild/_freeze_module.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/bytecodes.c
Python/ceval.c
Python/ceval_macros.h
Python/clinic/instrumentation.c.h [new file with mode: 0644]
Python/compile.c
Python/generated_cases.c.h
Python/instrumentation.c [new file with mode: 0644]
Python/legacy_tracing.c [new file with mode: 0644]
Python/makeopcodetargets.py
Python/opcode_metadata.h
Python/opcode_targets.h
Python/pystate.c
Python/specialize.c
Python/sysmodule.c
Tools/build/deepfreeze.py
Tools/build/generate_opcode_h.py
Tools/c-analyzer/cpython/globals-to-fix.tsv