Live CPU flame call graph
Live top hot functions with caller chains; dwarf unwind works without frame pointers
perf top -g --call-graph dwarf
- tool
- perf17 commands
More perf commands
-
perf record -F 99 -a -g -- sleep 30 && perf report --stdioSample whole machine at 99Hz for 30s, then print collapsed report; 99Hz dodges lockstep aliasing
-
perf script | stackcollapse-perf.pl | flamegraph.pl > flame.svgTurn perf.data into an interactive flame graph SVG (Brendan Gregg FlameGraph tools)
-
perf stat -d -d -d -- ./appRun with three -d for L1/LLC/TLB and stalled-cycle detail; reveals memory-bound vs CPU-bound
-
perf sched record -- sleep 10 && perf sched latency --sort maxRecord context switches then show per-task wakeup latency; find runqueue starvation
-
perf trace -s -p <pid>strace-like syscall trace with -s summary; lower overhead, no ptrace stop-the-world