mirror of https://github.com/CrimsonTome/tldr.git
perf: add link and -p example (#7229)
parent
ae3c1b294e
commit
5890df3641
|
@ -1,6 +1,7 @@
|
||||||
# perf
|
# perf
|
||||||
|
|
||||||
> Framework for Linux performance counter measurements.
|
> Framework for Linux performance counter measurements.
|
||||||
|
> More information: <https://perf.wiki.kernel.org>.
|
||||||
|
|
||||||
- Display basic performance counter stats for a command:
|
- Display basic performance counter stats for a command:
|
||||||
|
|
||||||
|
@ -14,6 +15,10 @@
|
||||||
|
|
||||||
`sudo perf record {{command}}`
|
`sudo perf record {{command}}`
|
||||||
|
|
||||||
|
- Record the profile of an existing process into `perf.data`:
|
||||||
|
|
||||||
|
`sudo perf record -p {{pid}}`
|
||||||
|
|
||||||
- Read `perf.data` (created by `perf record`) and display the profile:
|
- Read `perf.data` (created by `perf record`) and display the profile:
|
||||||
|
|
||||||
`sudo perf report`
|
`sudo perf report`
|
||||||
|
|
Loading…
Reference in New Issue