Stat command
Show hardware counters for a 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 per-function CPU usage (like top)
-
perf annotateShow annotated assembly for hottest function
-
perf record -F 99 -ag -- sleep 30 && perf script > out.perfCollect data suitable for flamegraph generation
-
perf stat -e syscalls:sys_enter_read ./my_appCount specific syscall events