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.
32 0:4: branch-instructions
46 rNNN: raw PMU events (eventsel+umask)
49 system-wide collection
62 Performance counter stats for 'sleep':
64 0.678356 task clock ticks (msecs)
65 7 context switches (events)
66 4 CPU migrations (events)
67 232 pagefaults (events)
68 1810403 CPU cycles (events)
69 946759 instructions (events)
70 18952 cache references (events)
71 4885 cache misses (events)
73 Wall-clock time elapsed: 1001.252894 msecs