Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223876
b: refs/heads/master
c: 8c20769
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Bohrer authored and Arnaldo Carvalho de Melo committed Dec 1, 2010
1 parent 36bb26d commit d6fe72f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f68d6bd451782b58c2b563dc86f0a81ba106c30c
refs/heads/master: 8c207692fc8fa3ea1a5ff97ad698efb09a81975a
34 changes: 27 additions & 7 deletions trunk/tools/perf/Documentation/perf-stat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ perf-stat - Run a command and gather performance counter statistics
SYNOPSIS
--------
[verse]
'perf stat' [-e <EVENT> | --event=EVENT] [-S] [-a] <command>
'perf stat' [-e <EVENT> | --event=EVENT] [-S] [-a] -- <command> [<options>]
'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command>
'perf stat' [-e <EVENT> | --event=EVENT] [-a] -- <command> [<options>]

DESCRIPTION
-----------
Expand All @@ -35,21 +35,33 @@ OPTIONS
child tasks do not inherit counters
-p::
--pid=<pid>::
stat events on existing pid
stat events on existing process id

-t::
--tid=<tid>::
stat events on existing thread id


-a::
system-wide collection
--all-cpus::
system-wide collection from all CPUs

-c::
scale counter values
--scale::
scale/normalize counter values

-r::
--repeat=<n>::
repeat command and print average + stddev (max: 100)

-B::
--big-num::
print large numbers with thousands' separators according to locale

-C::
--cpu=::
Count only on the list of cpus provided. Multiple CPUs can be provided as a
comma-sperated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
Count only on the list of CPUs provided. Multiple CPUs can be provided as a
comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
In per-thread mode, this option is ignored. The -a option is still necessary
to activate system-wide monitoring. Default is to count on all CPUs.

Expand All @@ -58,6 +70,14 @@ to activate system-wide monitoring. Default is to count on all CPUs.
Do not aggregate counts across all monitored CPUs in system-wide mode (-a).
This option is only valid in system-wide mode.

-n::
--null::
null run - don't start any counters

-v::
--verbose::
be more verbose (show counter open errors, etc)

EXAMPLES
--------

Expand Down

0 comments on commit d6fe72f

Please sign in to comment.