perf-diff.txt 3.0 KB

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