perf-diff.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. perf-diff(1)
  2. ============
  3. NAME
  4. ----
  5. perf-diff - Read two perf.data files and display the differential profile
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf diff' [oldfile] [newfile]
  10. DESCRIPTION
  11. -----------
  12. This command displays the performance difference amongst two perf.data files
  13. captured via perf record.
  14. If no parameters are passed it will assume perf.data.old and perf.data.
  15. The differential profile is displayed only for events matching both
  16. specified perf.data files.
  17. OPTIONS
  18. -------
  19. -M::
  20. --displacement::
  21. Show position displacement relative to baseline.
  22. -D::
  23. --dump-raw-trace::
  24. Dump raw trace in ASCII.
  25. -m::
  26. --modules::
  27. Load module symbols. WARNING: use only with -k and LIVE kernel
  28. -d::
  29. --dsos=::
  30. Only consider symbols in these dsos. CSV that understands
  31. file://filename entries.
  32. -C::
  33. --comms=::
  34. Only consider symbols in these comms. CSV that understands
  35. file://filename entries.
  36. -S::
  37. --symbols=::
  38. Only consider these symbols. CSV that understands
  39. file://filename entries.
  40. -s::
  41. --sort=::
  42. Sort by key(s): pid, comm, dso, symbol.
  43. -t::
  44. --field-separator=::
  45. Use a special separator character and don't pad with spaces, replacing
  46. all occurrences of this separator in symbol names (and other output)
  47. with a '.' character, that thus it's the only non valid separator.
  48. -v::
  49. --verbose::
  50. Be verbose, for instance, show the raw counts in addition to the
  51. diff.
  52. -f::
  53. --force::
  54. Don't complain, do it.
  55. --symfs=<directory>::
  56. Look for files with symbols relative to this directory.
  57. -b::
  58. --baseline-only::
  59. Show only items with match in baseline.
  60. -c::
  61. --compute::
  62. Differential computation selection - delta,ratio,wdiff (default is delta).
  63. If '+' is specified as a first character, the output is sorted based
  64. on the computation results.
  65. See COMPARISON METHODS section for more info.
  66. COMPARISON METHODS
  67. ------------------
  68. delta
  69. ~~~~~
  70. If specified the 'Delta' column is displayed with value 'd' computed as:
  71. d = A->period_percent - B->period_percent
  72. with:
  73. - A/B being matching hist entry from first/second file specified
  74. (or perf.data/perf.data.old) respectively.
  75. - period_percent being the % of the hist entry period value within
  76. single data file
  77. ratio
  78. ~~~~~
  79. If specified the 'Ratio' column is displayed with value 'r' computed as:
  80. r = A->period / B->period
  81. with:
  82. - A/B being matching hist entry from first/second file specified
  83. (or perf.data/perf.data.old) respectively.
  84. - period being the hist entry period value
  85. wdiff
  86. ~~~~~
  87. If specified the 'Weighted diff' column is displayed with value 'd' computed as:
  88. d = B->period * WEIGHT-A - A->period * WEIGHT-B
  89. - A/B being matching hist entry from first/second file specified
  90. (or perf.data/perf.data.old) respectively.
  91. - period being the hist entry period value
  92. - WEIGHT-A/WEIGHT-B being user suplied weights in the the '-c' option
  93. behind ':' separator like '-c wdiff:1,2'.
  94. SEE ALSO
  95. --------
  96. linkperf:perf-record[1]