Flamegraph data collection perf
Collect data suitable for flamegraph generation
perf record -F 99 -ag -- sleep 30 && perf script > out.perf
more perf
all 17 commands →
Count syscalls
perf stat -e syscalls:sys_enter_read ./my_app
Attach to running process
perf record -p 1234 sleep 5
Live CPU flame call graph
perf top -g --call-graph dwarf
System-wide sampled record
perf record -F 99 -a -g -- sleep 30 && perf report --stdio
Flame graph pipeline
perf script | stackcollapse-perf.pl | flamegraph.pl > flame.svg