Skip to content

Commit 830a20e

Browse files
pablogsalvstinner
andauthored
gh-93503: Document the new tracing/profiling APIs in the What's new document (#96681)
Co-authored-by: Victor Stinner <[email protected]>
1 parent 6d7a0e0 commit 830a20e

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ sqlite3
139139
* Add a :ref:`command-line interface <sqlite3-cli>`.
140140
(Contributed by Erlend E. Aasland in :gh:`77617`.)
141141

142+
threading
143+
---------
144+
145+
* Add :func:`threading.settrace_all_threads` and
146+
:func:`threading.setprofile_all_threads` that allow to set tracing and
147+
profiling functions in all running threads in addition to the calling one.
148+
(Contributed by Pablo Galindo in :gh:`93503`.)
149+
142150

143151
Optimizations
144152
=============
@@ -473,6 +481,12 @@ New Features
473481
``__dict__`` and weakrefs with less bookkeeping,
474482
using less memory and with faster access.
475483

484+
* Added two new public functions,
485+
:c:func:`PyEval_SetProfileAllThreads` and
486+
:c:func:`PyEval_SetTraceAllThreads`, that allow to set tracing and profiling
487+
functions in all running threads in addition to the calling one. (Contributed
488+
by Pablo Galindo in :gh:`93503`.)
489+
476490
Porting to Python 3.12
477491
----------------------
478492

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Add two new public functions to the public C-API,
2-
:c:func:`PyEval_SetProfileAllThreads` and
3-
:c:func:`PyEval_SetTraceAllThreads`, that allow to set tracking and
4-
profiling functions in all running threads in addition to the calling one.
5-
Also, add a new *running_threads* parameter to :func:`threading.setprofile`
6-
and :func:`threading.settrace` that allows to do the same from Python. Patch
7-
by Pablo Galindo
2+
:c:func:`PyEval_SetProfileAllThreads` and :c:func:`PyEval_SetTraceAllThreads`,
3+
that allow to set tracing and profiling functions in all running threads in
4+
addition to the calling one. Also, two analogous functions to the
5+
:mod:`threading` module (:func:`threading.setprofile_all_threads` and
6+
:func:`threading.settrace_all_threads`) that allow to do the same from Python.
7+
Patch by Pablo Galindo

0 commit comments

Comments
 (0)