aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation/perf-diff.txt
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-10-05 10:44:41 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-05 13:06:54 -0400
commit7aaf6b35512382329c5b2dd46b42f2bf12a5fff0 (patch)
treea0523500216e2224547bfe4c3e49630826fcbcf0 /tools/perf/Documentation/perf-diff.txt
parenta06d143e7cfaa10626f3ad0127a9b9169f900add (diff)
perf diff: Add ratio computation way to compare hist entries
Adding -c option to select computation method with the current 'Delta' computation as default. Current possible values are of this option are: 'delta' and 'ratio'. Adding 'ratio' as new computation way to compare hist entries. If specified the 'Ratio' column is displayed with value 'r' computed as: r = A->period / B->period with: - A/B being matching hist entry from first/second file specified (or perf.data/perf.data.old) respectively. - period being the hist entry period value Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1349448287-18919-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation/perf-diff.txt')
-rw-r--r--tools/perf/Documentation/perf-diff.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt
index 6ce95858cd4e..8fff0618c597 100644
--- a/tools/perf/Documentation/perf-diff.txt
+++ b/tools/perf/Documentation/perf-diff.txt
@@ -76,6 +76,39 @@ OPTIONS
76--baseline-only:: 76--baseline-only::
77 Show only items with match in baseline. 77 Show only items with match in baseline.
78 78
79-c::
80--compute::
81 Differential computation selection - delta,ratio (default is delta).
82 See COMPARISON METHODS section for more info.
83
84COMPARISON METHODS
85------------------
86delta
87~~~~~
88If specified the 'Delta' column is displayed with value 'd' computed as:
89
90 d = A->period_percent - B->period_percent
91
92with:
93 - A/B being matching hist entry from first/second file specified
94 (or perf.data/perf.data.old) respectively.
95
96 - period_percent being the % of the hist entry period value within
97 single data file
98
99ratio
100~~~~~
101If specified the 'Ratio' column is displayed with value 'r' computed as:
102
103 r = A->period / B->period
104
105with:
106 - A/B being matching hist entry from first/second file specified
107 (or perf.data/perf.data.old) respectively.
108
109 - period being the hist entry period value
110
111
79SEE ALSO 112SEE ALSO
80-------- 113--------
81linkperf:perf-record[1] 114linkperf:perf-record[1]