6 perf-stat - Run a command and gather performance counter statistics
11 'perf stat' [-e <EVENT> | --event=EVENT] [-l] [-a] <command>
15 This command runs a command and gathers performance counter statistics
22 Any command you can specify in a shell.
31 0:4: branch-instructions
45 rNNN: raw PMU events (eventsel+umask)
48 system-wide collection
61 Performance counter stats for 'sleep':
63 0.678356 task clock ticks (msecs)
64 7 context switches (events)
65 4 CPU migrations (events)
66 232 pagefaults (events)
67 1810403 CPU cycles (events)
68 946759 instructions (events)
69 18952 cache references (events)
70 4885 cache misses (events)
72 Wall-clock time elapsed: 1001.252894 msecs