6 perf-diff - Read perf.data files and display the differential profile
11 'perf diff' [baseline file] [data file1] [[data file2] ... ]
15 This command displays the performance difference amongst two or more perf.data
16 files captured via perf record.
18 If no parameters are passed it will assume perf.data.old and perf.data.
20 The differential profile is displayed only for events matching both
21 specified perf.data files.
27 Dump raw trace in ASCII.
31 Load module symbols. WARNING: use only with -k and LIVE kernel
35 Only consider symbols in these dsos. CSV that understands
36 file://filename entries.
40 Only consider symbols in these comms. CSV that understands
41 file://filename entries.
45 Only consider these symbols. CSV that understands
46 file://filename entries.
50 Sort by key(s): pid, comm, dso, symbol.
55 Use a special separator character and don't pad with spaces, replacing
56 all occurrences of this separator in symbol names (and other output)
57 with a '.' character, that thus it's the only non valid separator.
61 Be verbose, for instance, show the raw counts in addition to the
66 Don't complain, do it.
69 Look for files with symbols relative to this directory.
73 Show only items with match in baseline.
77 Differential computation selection - delta,ratio,wdiff (default is delta).
78 See COMPARISON METHODS section for more info.
82 Show period values for both compared hist entries.
86 Show formula for given computation.
90 Specify compute sorting column number.
94 The comparison is governed by the baseline file. The baseline perf.data
95 file is iterated for samples. All other perf.data files specified on
96 the command line are searched for the baseline sample pair. If the pair
97 is found, specified computation is made and result is displayed.
99 All samples from non-baseline perf.data files, that do not match any
100 baseline entry, are displayed with empty space within baseline column
101 and possible computation results (delta) in their related column.
103 Example files samples:
104 - file A with samples f1, f2, f3, f4, f6
105 - file B with samples f2, f4, f5
106 - file C with samples f1, f2, f5
109 x - computation takes place for pair
110 b - baseline sample percentage
114 baseline/A compute/B compute/C samples
115 ---------------------------------------
125 baseline/B compute/A compute/C samples
126 ---------------------------------------
136 baseline/C compute/B compute/A samples
137 ---------------------------------------
149 If specified the 'Delta' column is displayed with value 'd' computed as:
151 d = A->period_percent - B->period_percent
154 - A/B being matching hist entry from data/baseline file specified
155 (or perf.data/perf.data.old) respectively.
157 - period_percent being the % of the hist entry period value within
162 If specified the 'Ratio' column is displayed with value 'r' computed as:
164 r = A->period / B->period
167 - A/B being matching hist entry from data/baseline file specified
168 (or perf.data/perf.data.old) respectively.
170 - period being the hist entry period value
172 wdiff:WEIGHT-B,WEIGHT-A
173 ~~~~~~~~~~~~~~~~~~~~~~~
174 If specified the 'Weighted diff' column is displayed with value 'd' computed as:
176 d = B->period * WEIGHT-A - A->period * WEIGHT-B
178 - A/B being matching hist entry from data/baseline file specified
179 (or perf.data/perf.data.old) respectively.
181 - period being the hist entry period value
183 - WEIGHT-A/WEIGHT-B being user suplied weights in the the '-c' option
184 behind ':' separator like '-c wdiff:1,2'.
185 - WIEGHT-A being the weight of the data file
186 - WIEGHT-B being the weight of the baseline data file
190 linkperf:perf-record[1]