Forrest logo
back to context overview

perf

List of commands for perf:

  • perf:tldr:1cad9 perf: Record the profile of an existing process into `perf.data`.
    $ sudo perf record -p ${pid}
    try on your machine
    explain this command
  • perf:tldr:3bb38 perf: Read `perf.data` (created by `perf record`) and display the profile.
    $ sudo perf report
    try on your machine
    explain this command
  • perf:tldr:590b1 perf: Display system-wide real-time performance counter profile.
    $ sudo perf top
    try on your machine
    explain this command
  • perf:tldr:755f7 perf: Display basic performance counter stats for a command.
    $ perf stat ${gcc hello-c}
    try on your machine
    explain this command
  • perf:tldr:d5e06 perf: Run a command and record its profile into `perf.data`.
    $ sudo perf record ${command}
    try on your machine
    explain this command
back to context overview