perf-mem.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. perf-mem(1)
  2. ===========
  3. NAME
  4. ----
  5. perf-mem - Profile memory accesses
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf mem' [<options>] (record [<command>] | report)
  10. DESCRIPTION
  11. -----------
  12. "perf mem record" runs a command and gathers memory operation data
  13. from it, into perf.data. Perf record options are accepted and are passed through.
  14. "perf mem report" displays the result. It invokes perf report with the
  15. right set of options to display a memory access profile. By default, loads
  16. and stores are sampled. Use the -t option to limit to loads or stores.
  17. Note that on Intel systems the memory latency reported is the use-latency,
  18. not the pure load (or store latency). Use latency includes any pipeline
  19. queueing delays in addition to the memory subsystem latency.
  20. OPTIONS
  21. -------
  22. <command>...::
  23. Any command you can specify in a shell.
  24. -t::
  25. --type=::
  26. Select the memory operation type: load or store (default: load,store)
  27. -D::
  28. --dump-raw-samples=::
  29. Dump the raw decoded samples on the screen in a format that is easy to parse with
  30. one sample per line.
  31. -x::
  32. --field-separator::
  33. Specify the field separator used when dump raw samples (-D option). By default,
  34. The separator is the space character.
  35. -C::
  36. --cpu-list::
  37. Restrict dump of raw samples to those provided via this option. Note that the same
  38. option can be passed in record mode. It will be interpreted the same way as perf
  39. record.
  40. -K::
  41. --all-kernel::
  42. Configure all used events to run in kernel space.
  43. -U::
  44. --all-user::
  45. Configure all used events to run in user space.
  46. --ldload::
  47. Specify desired latency for loads event.
  48. SEE ALSO
  49. --------
  50. linkperf:perf-record[1], linkperf:perf-report[1]