Skip to content

Commit bd39ceb

Browse files
committed
Save 16 bytes
1 parent 9a192d0 commit bd39ceb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/howto/perf_profiling.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,17 @@ that were created by Python.
265265
incomplete. On the other hand, if the size is too big, then ``perf`` won't
266266
be able to sample the process as frequently as it would like as the overhead
267267
will be higher.
268-
268+
269269
The stack size is particularly important when profiling Python code compiled
270270
with low optimization levels (like ``-O0``), as these builds tend to have
271271
larger stack frames. If you are compiling Python with ``-O0`` and not seeing
272272
Python functions in your profiling output, try increasing the stack dump
273273
size to 65528 bytes (the maximum)::
274-
274+
275275
$ perf record -F 9999 -g -k 1 --call-graph dwarf,65528 -o perf.data python -Xperf_jit my_script.py
276-
276+
277277
Different compilation flags can significantly impact stack sizes:
278-
278+
279279
- Builds with ``-O0`` typically have much larger stack frames than those with ``-O1`` or higher
280280
- Adding optimizations (``-O1``, ``-O2``, etc.) typically reduces stack size
281281
- Frame pointers (``-fno-omit-frame-pointer``) generally provide more reliable stack unwinding

0 commit comments

Comments
 (0)