File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments