Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
perf
/
Stat command
Stat command
perf
Show hardware counters for a command
perf stat ls -la
⎘ copy
#perf
#profiling
#stat
more perf
all 17 commands →
Record with specific event
perf record -e cache-misses ./my_app
Top-like live view
perf top
Annotate hot functions
perf annotate
Flamegraph data collection
perf record -F 99 -ag -- sleep 30 && perf script > out.perf
Count syscalls
perf stat -e syscalls:sys_enter_read ./my_app