Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31c0eb8

Browse files
Address review: add links to perf wiki, and use bullet points
1 parent 9388964 commit 31c0eb8

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Doc/howto/perf_profiling.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ Python support for the Linux ``perf`` profiler
88

99
:author: Pablo Galindo
1010

11-
The Linux ``perf`` profiler is a very powerful tool that allows you to profile and
12-
obtain information about the performance of your application. ``perf`` also has
13-
a very vibrant ecosystem of tools that aid with the analysis of the data that it
14-
produces.
11+
`The Linux perf profiler <http://perf.wiki.kernel.org>`_
12+
is a very powerful tool that allows you to profile and obtain
13+
information about the performance of your application.
14+
``perf`` also has a very vibrant ecosystem of tools
15+
that aid with the analysis of the data that it produces.
1516

1617
The main problem with using the ``perf`` profiler with Python applications is that
1718
``perf`` only allows to get information about native symbols, this is, the names of
@@ -151,10 +152,12 @@ How to enable the ``perf`` profiling mode
151152
-----------------------------------------
152153

153154
There are three ways to activate the ``perf`` profiling mode:
154-
using the :option:`-Xperf <-X>` command-line option,
155-
using the :envvar:`PYTHONPERFSUPPORT` environment variable,
156-
and using the :func:`sys.activate_stack_trampoline` and
157-
:func:`sys.deactivate_stack_trampoline` APIs.
155+
156+
* using the :option:`-Xperf <-X>` command-line option
157+
* using the :envvar:`PYTHONPERFSUPPORT` environment variable
158+
* using the :func:`sys.activate_stack_trampoline` and
159+
:func:`sys.deactivate_stack_trampoline` APIs
160+
158161
If you want profiling to be active when you start the Python interpreter,
159162
use the :option:`-Xperf <-X>` option::
160163

Doc/library/sys.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,8 @@ always available.
15351535

15361536
.. seealso::
15371537

1538-
:ref:`perf_profiling`
1538+
* :ref:`perf_profiling`
1539+
* https://perf.wiki.kernel.org
15391540

15401541
.. function:: deactivate_stack_trampoline()
15411542

0 commit comments

Comments
 (0)