1PERF-STAT(1)                      perf Manual                     PERF-STAT(1)
2
3
4

NAME

6       perf-stat - Run a command and gather performance counter statistics
7

SYNOPSIS

9       perf stat [-e <EVENT> | --event=EVENT] [-S] [-a] <command>
10       perf stat [-e <EVENT> | --event=EVENT] [-S] [-a] — <command> [<options>]
11

DESCRIPTION

13       This command runs a command and gathers performance counter statistics
14       from it.
15

OPTIONS

17       <command>...
18           Any command you can specify in a shell.
19
20       -e, --event=
21           Select the PMU event. Selection can be a symbolic event name (use
22           perf list to list all events) or a raw PMU event (eventsel+umask)
23           in the form of rNNN where NNN is a hexadecimal event descriptor.
24
25       -i, --no-inherit
26           child tasks do not inherit counters
27
28       -p, --pid=<pid>
29           stat events on existing pid
30
31       -a
32           system-wide collection
33
34       -c
35           scale counter values
36
37       -B
38           print large numbers with thousands' separators according to locale
39

EXAMPLES

41       $ perf stat — make -j
42
43           Performance counter stats for 'make -j':
44
45           8117.370256  task clock ticks     #      11.281 CPU utilization factor
46                   678  context switches     #       0.000 M/sec
47                   133  CPU migrations       #       0.000 M/sec
48                235724  pagefaults           #       0.029 M/sec
49           24821162526  CPU cycles           #    3057.784 M/sec
50           18687303457  instructions         #    2302.138 M/sec
51             172158895  cache references     #      21.209 M/sec
52              27075259  cache misses         #       3.335 M/sec
53
54           Wall-clock time elapsed:   719.554352 msecs
55

SEE ALSO

57       perf-top(1), perf-list(1)
58
59
60
61perf 2.6.35.14-106.fc             11/23/2011                      PERF-STAT(1)
Impressum