summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-10-27 13:06:48 (GMT)
committerGitHub <noreply@github.com>2022-10-27 13:06:48 (GMT)
commit723ebe76e787cfa6b08cc9587dd679f3234a1025 (patch)
tree6e46cce9595e7411b5dfdf83fb05b6536baf325b /Doc/whatsnew
parent22863df7ca5f9cd01a40ab3dce3d067ec5666081 (diff)
downloadcpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.zip
cpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.tar.gz
cpython-723ebe76e787cfa6b08cc9587dd679f3234a1025.tar.bz2
gh-96143: Improve perf profiler docs (#96445)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 8f8a994..39ad3ac 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -74,6 +74,15 @@ Important deprecations, removals or restrictions:
New Features
============
+* Add :ref:`perf_profiling` through the new
+ environment variable :envvar:`PYTHONPERFSUPPORT`,
+ the new command-line option :option:`-X perf <-X>`,
+ as well as the new :func:`sys.activate_stack_trampoline`,
+ :func:`sys.deactivate_stack_trampoline`,
+ and :func:`sys.is_stack_trampoline_active` APIs.
+ (Design by Pablo Galindo. Contributed by Pablo Galindo and Christian Heimes
+ with contributions from Gregory P. Smith [Google] and Mark Shannon
+ in :gh:`96123`.)
Other Language Changes
@@ -194,6 +203,19 @@ tempfile
The :class:`tempfile.NamedTemporaryFile` function has a new optional parameter
*delete_on_close* (Contributed by Evgeny Zorin in :gh:`58451`.)
+sys
+---
+
+* Add :func:`sys.activate_stack_trampoline` and
+ :func:`sys.deactivate_stack_trampoline` for activating and deactivating
+ stack profiler trampolines,
+ and :func:`sys.is_stack_trampoline_active` for querying if stack profiler
+ trampolines are active.
+ (Contributed by Pablo Galindo and Christian Heimes
+ with contributions from Gregory P. Smith [Google] and Mark Shannon
+ in :gh:`96123`.)
+
+
Optimizations
=============