@@ -535,13 +535,11 @@ Miscellaneous options
535
535
development (running from the source tree) then the default is "off".
536
536
Note that the "importlib_bootstrap" and "importlib_bootstrap_external"
537
537
frozen modules are always used, even if this flag is set to "off".
538
- * ``-X perf `` activates compatibility mode with the ``perf `` profiler.
539
- When this option is activated , the Linux ``perf `` profiler will be able to
538
+ * ``-X perf `` enables support for the Linux ``perf `` profiler.
539
+ When this option is provided , the ``perf `` profiler will be able to
540
540
report Python calls. This option is only available on some platforms and
541
541
will do nothing if is not supported on the current system. The default value
542
- is "off". See :ref: `perf_profiling ` for more details.
543
- This option is equivalent to setting the environment variable
544
- :envvar: `PYTHONPERFSUPPORT ` to ``1 ``.
542
+ is "off". See also :envvar: `PYTHONPERFSUPPORT ` and :ref: `perf_profiling `.
545
543
546
544
It also allows passing arbitrary values and retrieving them through the
547
545
:data: `sys._xoptions ` dictionary.
@@ -1036,14 +1034,13 @@ conflict.
1036
1034
1037
1035
.. envvar :: PYTHONPERFSUPPORT
1038
1036
1039
- If this variable is set to a nonzero value, it activates compatibility mode
1040
- with the ``perf `` profiler so Python calls can be detected by it.
1041
- This is exactly equivalent to setting :option: `-X perf <-X> `
1042
- on the command line.
1037
+ If this variable is set to a nonzero value, it enables support for
1038
+ the Linux ``perf `` profiler so Python calls can be detected by it.
1043
1039
1044
- If set to ``0 ``, disable ``perf `` profiler support.
1040
+ If set to ``0 ``, disable Linux ``perf `` profiler support.
1045
1041
1046
- See :ref: `perf_profiling ` for more details.
1042
+ See also the :option: `-X perf <-X> ` command-line option
1043
+ and :ref: `perf_profiling `.
1047
1044
1048
1045
.. versionadded :: 3.12
1049
1046
0 commit comments