mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 15:19:43 +01:00
perf: add link and -p example (#7229)
This commit is contained in:
parent
ae3c1b294e
commit
5890df3641
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
# perf
|
||||
|
||||
> Framework for Linux performance counter measurements.
|
||||
> More information: <https://perf.wiki.kernel.org>.
|
||||
|
||||
- Display basic performance counter stats for a command:
|
||||
|
||||
|
@ -14,6 +15,10 @@
|
|||
|
||||
`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:
|
||||
|
||||
`sudo perf report`
|
||||
|
|
Loading…
Reference in a new issue