Skip to content

Commit

Permalink
perf: add page (tldr-pages#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrw committed Oct 20, 2017
1 parent 868954c commit 209fcda
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/linux/perf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# perf

> Framework for linux performance counter measurements.
- Gather basic performance counter stats for a command:

`perf stat {{command}}`

- Display system-wide real time performance counter profile:

`sudo perf top`

- Run a command and record its profile into perf.data:

`sudo perf record {{command}}`

- Read perf.data (created by perf record) and display the profile:

`sudo perf report`

0 comments on commit 209fcda

Please sign in to comment.