Count stats for a command
Show hardware counters for one command
perf stat ls -la
- tool
- perf17 commands
More perf commands
-
perf record -e cache-misses ./my_appRecord only cache-miss events
-
perf topShow live CPU usage per function, similar to top
-
perf annotateShow annotated assembly for the hottest functions
-
perf record -F 99 -ag -- sleep 30 && perf script > out.perfSample all CPUs at 99 Hz for 30 seconds and save the stacks for a flame graph
-
perf stat -e syscalls:sys_enter_read ./my_appCount how many read() syscalls the app makes