Record CPU cycles
Record performance data with call-graph info
perf record -g ./my_app
- tool
- perf17 commands
More perf commands
-
perf reportInteractive display of recorded perf data
-
perf listList all supported perf events on current system
-
perf stat ls -laShow hardware counters for a command
-
perf record -e cache-misses ./my_appRecord only cache-miss events
-
perf topShow live per-function CPU usage (like top)