8000 gh-93503: Document the new tracing/profiling APIs in the What's new document by pablogsal · Pull Request #96681 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-93503: Document the new tracing/profiling APIs in the What's new document #96681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,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
=============
Expand Down Expand Up @@ -470,6 +478,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
----------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Add two new public functions to the public C-API,
:c:func:`PyEval_SetProfileAllThreads` and
:c:func:`PyEval_SetTraceAllThreads`, that allow to set tracking and
profiling functions in all running threads in addition to the calling one.
Also, add a new *running_threads* parameter to :func:`threading.setprofile`
and :func:`threading.settrace` that allows to do the same from Python. Patch
by Pablo Galindo
: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. Also, two analogous functions to the
:mod:`threading` module (:func:`threading.setprofile_all_threads` and
:func:`threading.settrace_all_threads`) that allow to do the same from Python.
Patch by Pablo Galindo
0