@@ -28,8 +28,8 @@ relationship between this piece of code and the associated Python function using
28
28
.. note ::
29
29
30
30
Support for profiling is available on Linux and macOS on select architectures.
31
- `` perf `` is available on Linux, while `` samply `` can be used on both Linux and macOS.
32
- `` samply `` support on macOS is available starting from Python 3.14.
31
+ Perf is available on Linux, while samply can be used on both Linux and macOS.
32
+ samply support on macOS is available starting from Python 3.14.
33
33
Check the output of the ``configure `` build step or
34
34
check the output of ``python -m sysconfig | grep HAVE_PERF_TRAMPOLINE ``
35
35
to see if your system is supported.
@@ -149,25 +149,25 @@ Instead, if we run the same experiment with ``perf`` support enabled we get:
149
149
150
150
151
151
152
- Using `` samply `` profiler
152
+ Using the samply profiler
153
153
-------------------------
154
154
155
- `` samply `` is a modern profiler that can be used as an alternative to `` perf `` .
155
+ samply is a modern profiler that can be used as an alternative to perf.
156
156
It uses the same perf map files that Python generates, making it compatible
157
- with Python's profiling support. `` samply `` is particularly useful on macOS
158
- where `` perf `` is not available.
157
+ with Python's profiling support. samply is particularly useful on macOS
158
+ where perf is not available.
159
159
160
- To use `` samply `` with Python, first install it following the instructions at
160
+ To use samply with Python, first install it following the instructions at
161
161
https://github.com/mstange/samply, then run::
162
162
163
163
$ samply record PYTHONPERFSUPPORT=1 python my_script.py
164
164
165
165
This will open a web interface where you can analyze the profiling data
166
- interactively. The advantage of `` samply `` is that it provides a modern
166
+ interactively. The advantage of samply is that it provides a modern
167
167
web-based interface for analyzing profiling data and works on both Linux
168
168
and macOS.
169
169
170
- On macOS, `` samply `` support requires Python 3.14 or later.
170
+ On macOS, samply support requires Python 3.14 or later.
171
171
172
172
How to enable ``perf `` profiling support
173
173
----------------------------------------
0 commit comments