Sh - Perf Utility

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU)

1 - About

Perf is the performance counters subsystem in Linux.

3 - Installation

yum -y install perf



4 - Syntax

perf [--version] [--help] COMMAND [ARGS]


  • command can be:
    • annotate Read (created by perf record) and display annotated code
    • list List all symbolic event types
    • record Run a command and record its profile into
    • report Read (created by perf record) and display the profile
    • sched Tool to trace/measure scheduler properties (latencies)
    • stat Run a command and gather performance counter statistics
    • timechart Tool to visualize total system behavior during a workload
    • top System profiling tool.
    • trace Read (created by perf record) and display trace output

See 'perf help COMMAND' for more information on a specific command.


5 - Documentation / Reference