Skip to content

Commit

Permalink
perf: add page (tldr-pages#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl authored Oct 22, 2017
2 parents 9896662 + 741fcf1 commit 8ce7fcf
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.
- Display basic performance counter stats for a command:

`perf stat {{gcc hello.c}}`

- 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 8ce7fcf

Please sign in to comment.