diff options
Diffstat (limited to 'tools/perf/Documentation/perf-diff.txt')
-rw-r--r-- | tools/perf/Documentation/perf-diff.txt | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index ab7f667de1b1..194f37d635df 100644 --- a/tools/perf/Documentation/perf-diff.txt +++ b/tools/perf/Documentation/perf-diff.txt | |||
@@ -72,6 +72,66 @@ OPTIONS | |||
72 | --symfs=<directory>:: | 72 | --symfs=<directory>:: |
73 | Look for files with symbols relative to this directory. | 73 | Look for files with symbols relative to this directory. |
74 | 74 | ||
75 | -b:: | ||
76 | --baseline-only:: | ||
77 | Show only items with match in baseline. | ||
78 | |||
79 | -c:: | ||
80 | --compute:: | ||
81 | Differential computation selection - delta,ratio,wdiff (default is delta). | ||
82 | If '+' is specified as a first character, the output is sorted based | ||
83 | on the computation results. | ||
84 | See COMPARISON METHODS section for more info. | ||
85 | |||
86 | -p:: | ||
87 | --period:: | ||
88 | Show period values for both compared hist entries. | ||
89 | |||
90 | -F:: | ||
91 | --formula:: | ||
92 | Show formula for given computation. | ||
93 | |||
94 | COMPARISON METHODS | ||
95 | ------------------ | ||
96 | delta | ||
97 | ~~~~~ | ||
98 | If specified the 'Delta' column is displayed with value 'd' computed as: | ||
99 | |||
100 | d = A->period_percent - B->period_percent | ||
101 | |||
102 | with: | ||
103 | - A/B being matching hist entry from first/second file specified | ||
104 | (or perf.data/perf.data.old) respectively. | ||
105 | |||
106 | - period_percent being the % of the hist entry period value within | ||
107 | single data file | ||
108 | |||
109 | ratio | ||
110 | ~~~~~ | ||
111 | If specified the 'Ratio' column is displayed with value 'r' computed as: | ||
112 | |||
113 | r = A->period / B->period | ||
114 | |||
115 | with: | ||
116 | - A/B being matching hist entry from first/second file specified | ||
117 | (or perf.data/perf.data.old) respectively. | ||
118 | |||
119 | - period being the hist entry period value | ||
120 | |||
121 | wdiff | ||
122 | ~~~~~ | ||
123 | If specified the 'Weighted diff' column is displayed with value 'd' computed as: | ||
124 | |||
125 | d = B->period * WEIGHT-A - A->period * WEIGHT-B | ||
126 | |||
127 | - A/B being matching hist entry from first/second file specified | ||
128 | (or perf.data/perf.data.old) respectively. | ||
129 | |||
130 | - period being the hist entry period value | ||
131 | |||
132 | - WEIGHT-A/WEIGHT-B being user suplied weights in the the '-c' option | ||
133 | behind ':' separator like '-c wdiff:1,2'. | ||
134 | |||
75 | SEE ALSO | 135 | SEE ALSO |
76 | -------- | 136 | -------- |
77 | linkperf:perf-record[1] | 137 | linkperf:perf-record[1] |