@@ -535,13 +535,11 @@ Miscellaneous options
535535 development (running from the source tree) then the default is "off".
536536 Note that the "importlib_bootstrap" and "importlib_bootstrap_external"
537537 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
540540 report Python calls. This option is only available on some platforms and
541541 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 `.
545543
546544 It also allows passing arbitrary values and retrieving them through the
547545 :data: `sys._xoptions ` dictionary.
@@ -1036,14 +1034,13 @@ conflict.
10361034
10371035.. envvar :: PYTHONPERFSUPPORT
10381036
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.
10431039
1044- If set to ``0 ``, disable ``perf `` profiler support.
1040+ If set to ``0 ``, disable Linux ``perf `` profiler support.
10451041
1046- See :ref: `perf_profiling ` for more details.
1042+ See also the :option: `-X perf <-X> ` command-line option
1043+ and :ref: `perf_profiling `.
10471044
10481045 .. versionadded :: 3.12
10491046
0 commit comments