Skip to content

Commit

Permalink
perf: resolve review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrw committed Oct 21, 2017
1 parent 209fcda commit 84bcef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/linux/perf.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

> Framework for linux performance counter measurements.
- Gather basic performance counter stats for a command:
- Display basic performance counter stats for a command `gcc -c -O3 hello.c`:

`perf stat {{command}}`
`perf stat {{gcc -c -O3 hello.c}}`

- Display system-wide real time performance counter profile:

`sudo perf top`

- Run a command and record its profile into perf.data:
- 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:
- Read "perf.data" (created by `perf record`) and display the profile:

`sudo perf report`

0 comments on commit 84bcef2

Please sign in to comment.