6 perf-stat - Run a command and gather performance counter statistics
11 'perf stat' [-e <EVENT> | --event=EVENT] [-l] [-a] <command>
12 'perf stat' [-e <EVENT> | --event=EVENT] [-l] [-a] -- <command> [<options>]
16 This command runs a command and gathers performance counter statistics
23 Any command you can specify in a shell.
33 0:4: branch-instructions
47 rNNN: raw PMU events (eventsel+umask)
51 child tasks inherit counters
54 stat events on existing pid
57 system-wide collection
65 $ perf stat -- make -j
67 Performance counter stats for 'make -j':
69 8117.370256 task clock ticks # 11.281 CPU utilization factor
70 678 context switches # 0.000 M/sec
71 133 CPU migrations # 0.000 M/sec
72 235724 pagefaults # 0.029 M/sec
73 24821162526 CPU cycles # 3057.784 M/sec
74 18687303457 instructions # 2302.138 M/sec
75 172158895 cache references # 21.209 M/sec
76 27075259 cache misses # 3.335 M/sec
78 Wall-clock time elapsed: 719.554352 msecs