mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-96143: Improve perf profiler docs (#96445)
This commit is contained in:
parent
22863df7ca
commit
723ebe76e7
6 changed files with 118 additions and 50 deletions
|
@ -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
|
||||
=============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue