summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-09-13 12:12:15 (GMT)
committerGitHub <noreply@github.com>2022-09-13 12:12:15 (GMT)
commit830a20eb3273a84a77eb2fc160cc10d9f8904275 (patch)
tree72706bf7d0c59c92f6f9bb6584890565f7c78d78 /Doc
parent6d7a0e0dd760d4e01e512aad3819c3306c3641a3 (diff)
downloadcpython-830a20eb3273a84a77eb2fc160cc10d9f8904275.zip
cpython-830a20eb3273a84a77eb2fc160cc10d9f8904275.tar.gz
cpython-830a20eb3273a84a77eb2fc160cc10d9f8904275.tar.bz2
gh-93503: Document the new tracing/profiling APIs in the What's new document (#96681)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.12.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 11784ba..8e178d9 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -139,6 +139,14 @@ sqlite3
* Add a :ref:`command-line interface <sqlite3-cli>`.
(Contributed by Erlend E. Aasland in :gh:`77617`.)
+threading
+---------
+
+* Add :func:`threading.settrace_all_threads` and
+ :func:`threading.setprofile_all_threads` that allow to set tracing and
+ profiling functions in all running threads in addition to the calling one.
+ (Contributed by Pablo Galindo in :gh:`93503`.)
+
Optimizations
=============
@@ -473,6 +481,12 @@ New Features
``__dict__`` and weakrefs with less bookkeeping,
using less memory and with faster access.
+* Added two new public functions,
+ :c:func:`PyEval_SetProfileAllThreads` and
+ :c:func:`PyEval_SetTraceAllThreads`, that allow to set tracing and profiling
+ functions in all running threads in addition to the calling one. (Contributed
+ by Pablo Galindo in :gh:`93503`.)
+
Porting to Python 3.12
----------------------