@@ -8,10 +8,11 @@ Python support for the Linux ``perf`` profiler
8
8
9
9
:author: Pablo Galindo
10
10
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.
15
16
16
17
The main problem with using the ``perf `` profiler with Python applications is that
17
18
``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
151
152
-----------------------------------------
152
153
153
154
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
+
158
161
If you want profiling to be active when you start the Python interpreter,
159
162
use the :option: `-Xperf <-X> ` option::
160
163
0 commit comments