blob: 74d7481ed7a6916f8797ed67b91b5c5d80382edc [file] [log] [blame]
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -02001perf-diff(1)
Arnaldo Carvalho de Melo4778e0e2010-05-05 11:23:27 -03002============
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -02003
4NAME
5----
Ingo Molnard30531c2009-12-15 10:24:08 +01006perf-diff - Read two perf.data files and display the differential profile
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -02007
8SYNOPSIS
9--------
10[verse]
11'perf diff' [oldfile] [newfile]
12
13DESCRIPTION
14-----------
Ingo Molnard30531c2009-12-15 10:24:08 +010015This command displays the performance difference amongst two perf.data files
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -020016captured via perf record.
17
18If no parameters are passed it will assume perf.data.old and perf.data.
19
20OPTIONS
21-------
Shawn Bohrer5ea4f852010-11-30 19:57:12 -060022-M::
23--displacement::
24 Show position displacement relative to baseline.
25
26-D::
27--dump-raw-trace::
28 Dump raw trace in ASCII.
29
30-m::
31--modules::
32 Load module symbols. WARNING: use only with -k and LIVE kernel
33
Arnaldo Carvalho de Meloc351c282009-12-16 13:49:27 -020034-d::
35--dsos=::
36 Only consider symbols in these dsos. CSV that understands
37 file://filename entries.
38
39-C::
40--comms=::
41 Only consider symbols in these comms. CSV that understands
42 file://filename entries.
43
44-S::
45--symbols=::
46 Only consider these symbols. CSV that understands
47 file://filename entries.
48
49-s::
50--sort=::
51 Sort by key(s): pid, comm, dso, symbol.
52
53-t::
54--field-separator=::
55
56 Use a special separator character and don't pad with spaces, replacing
Shawn Bohrer5ea4f852010-11-30 19:57:12 -060057 all occurrences of this separator in symbol names (and other output)
Arnaldo Carvalho de Meloc351c282009-12-16 13:49:27 -020058 with a '.' character, that thus it's the only non valid separator.
59
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -020060-v::
61--verbose::
Ingo Molnard30531c2009-12-15 10:24:08 +010062 Be verbose, for instance, show the raw counts in addition to the
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -020063 diff.
Arnaldo Carvalho de Melocdccc692009-12-15 11:01:22 -020064
Shawn Bohrer5ea4f852010-11-30 19:57:12 -060065-f::
66--force::
67 Don't complain, do it.
68
David Ahernec5761e2010-12-09 13:27:07 -070069--symfs=<directory>::
70 Look for files with symbols relative to this directory.
Shawn Bohrer5ea4f852010-11-30 19:57:12 -060071
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -020072SEE ALSO
73--------
74linkperf:perf-record[1]