]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)
authorVictor Stinner <vstinner@python.org>
Fri, 15 Oct 2021 14:06:30 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 14:06:30 +0000 (16:06 +0200)
commit547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba
treef89a1327f1847ca97929efec97a12cab09478b2a
parent354c35220d25a893e502014478f6739dad6897f3
bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)

Add PyThreadState_EnterTracing() and PyThreadState_LeaveTracing()
functions to the limited C API to suspend and resume tracing and
profiling.

Add an unit test on the PyThreadState C API to _testcapi.

Add also internal _PyThreadState_DisableTracing() and
_PyThreadState_ResetTracing().
Doc/c-api/init.rst
Doc/whatsnew/3.11.rst
Include/cpython/pystate.h
Include/internal/pycore_pystate.h
Misc/NEWS.d/next/C API/2021-09-24-11-12-21.bpo-43760.Bfxd1-.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Python/ceval.c
Python/pystate.c
Python/sysmodule.c