perf-diff.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. -p::
  67. --period::
  68. Show period values for both compared hist entries.
  69. -F::
  70. --formula::
  71. Show formula for given computation.
  72. COMPARISON METHODS
  73. ------------------
  74. delta
  75. ~~~~~
  76. If specified the 'Delta' column is displayed with value 'd' computed as:
  77. d = A->period_percent - B->period_percent
  78. with:
  79. - A/B being matching hist entry from first/second file specified
  80. (or perf.data/perf.data.old) respectively.
  81. - period_percent being the % of the hist entry period value within
  82. single data file
  83. ratio
  84. ~~~~~
  85. If specified the 'Ratio' column is displayed with value 'r' computed as:
  86. r = A->period / B->period
  87. with:
  88. - A/B being matching hist entry from first/second file specified
  89. (or perf.data/perf.data.old) respectively.
  90. - period being the hist entry period value
  91. wdiff
  92. ~~~~~
  93. If specified the 'Weighted diff' column is displayed with value 'd' computed as:
  94. d = B->period * WEIGHT-A - A->period * WEIGHT-B
  95. - A/B being matching hist entry from first/second file specified
  96. (or perf.data/perf.data.old) respectively.
  97. - period being the hist entry period value
  98. - WEIGHT-A/WEIGHT-B being user suplied weights in the the '-c' option
  99. behind ':' separator like '-c wdiff:1,2'.
  100. SEE ALSO
  101. --------
  102. linkperf:perf-record[1]