summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-08-30 18:37:22 (GMT)
committerGitHub <noreply@github.com>2022-08-30 18:37:22 (GMT)
commitf49dd54b72ec3fe6dbdcd2476a810929382bc196 (patch)
tree936df577343e5321927961ec7a0c5fa554af52fb /Doc
parent45fd3685aad90de3be21c8f6eade7b5985629fb8 (diff)
downloadcpython-f49dd54b72ec3fe6dbdcd2476a810929382bc196.zip
cpython-f49dd54b72ec3fe6dbdcd2476a810929382bc196.tar.gz
cpython-f49dd54b72ec3fe6dbdcd2476a810929382bc196.tar.bz2
gh-96143: Add some comments and minor fixes missed in the original PR (#96433)
* gh-96132: Add some comments and minor fixes missed in the original PR * Update Doc/using/cmdline.rst Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/perf_profiling.rst3
-rw-r--r--Doc/using/cmdline.rst2
2 files changed, 5 insertions, 0 deletions
diff --git a/Doc/howto/perf_profiling.rst b/Doc/howto/perf_profiling.rst
index 2e1bb48..ed8de88 100644
--- a/Doc/howto/perf_profiling.rst
+++ b/Doc/howto/perf_profiling.rst
@@ -155,6 +155,9 @@ active since the start of the Python interpreter, you can use the `-Xperf` optio
$ python -Xperf my_script.py
+You can also set the :envvar:`PYTHONPERFSUPPORT` to a nonzero value to actiavate perf
+profiling mode globally.
+
There is also support for dynamically activating and deactivating the perf
profiling mode by using the APIs in the :mod:`sys` module:
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 5ecc882..fa2b07e 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -582,6 +582,8 @@ Miscellaneous options
.. versionadded:: 3.11
The ``-X frozen_modules`` option.
+ .. versionadded:: 3.12
+ The ``-X perf`` option.
Options you shouldn't use