Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f7fc54

Browse filesBrowse files
[3.13] gh-118518: Minor improvements to perf docs (GH-130866) (#131059)
gh-118518: Minor improvements to perf docs (GH-130866) Minor improvements to perf docs (cherry picked from commit ecdf6b1) Co-authored-by: stratakis <cstratak@redhat.com>
1 parent 8f6a9aa commit 7f7fc54
Copy full SHA for 7f7fc54

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎Doc/howto/perf_profiling.rst

Copy file name to clipboardExpand all lines: Doc/howto/perf_profiling.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ the :option:`!-X` option takes precedence over the environment variable.
162162

163163
Example, using the environment variable::
164164

165-
$ PYTHONPERFSUPPORT=1 perf record -F 9999 -g -o perf.data python script.py
165+
$ PYTHONPERFSUPPORT=1 perf record -F 9999 -g -o perf.data python my_script.py
166166
$ perf report -g -i perf.data
167167

168168
Example, using the :option:`!-X` option::
169169

170-
$ perf record -F 9999 -g -o perf.data python -X perf script.py
170+
$ perf record -F 9999 -g -o perf.data python -X perf my_script.py
171171
$ perf report -g -i perf.data
172172

173173
Example, using the :mod:`sys` APIs in file :file:`example.py`:
@@ -236,7 +236,7 @@ When using the perf JIT mode, you need an extra step before you can run ``perf
236236
report``. You need to call the ``perf inject`` command to inject the JIT
237237
information into the ``perf.data`` file.::
238238

239-
$ perf record -F 9999 -g --call-graph dwarf -o perf.data python -Xperf_jit my_script.py
239+
$ perf record -F 9999 -g -k 1 --call-graph dwarf -o perf.data python -Xperf_jit my_script.py
240240
$ perf inject -i perf.data --jit --output perf.jit.data
241241
$ perf report -g -i perf.jit.data
242242

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.