Record with specific event
Record only cache-miss events
perf record -e cache-misses ./my_app
- tool
- perf17 commands
More perf commands
-
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
-
perf record -p 1234 sleep 5Profile an already-running process for 5 seconds