perf
Installation
SKILL.md
Identity
| Property | Value |
|---|---|
| Binary | perf |
| Config | No persistent config — invoked directly |
| Logs | Saves recordings to perf.data in the current directory |
| Type | CLI tool |
| Install | apt install linux-perf / dnf install perf (must match kernel version) |
Key Operations
| Task | Command |
|---|---|
| Live top-like CPU hotspot view | perf top |
| Count hardware events for a command | perf stat cmd |
| Count events, attach to running PID | perf stat -p 1234 |
| Record a CPU profile with call stacks | perf record -g cmd |
| Report from the last recording | perf report |
Related skills