Red Hat Training
A Red Hat training course is available for Red Hat Developer Toolset
Chapter 13. OProfile
OProfile is a low overhead, system-wide profiler that uses the performance-monitoring hardware on the processor to retrieve information about the kernel and executables on the system, such as when memory is referenced, the number of level 2 cache (L2) requests, and the number of hardware interrupts received. It consists of a configuration utility, a daemon for collecting data, and a number of tools that can be used to transform the data into a human-readable form. For a complete list of tools that are distributed with the Red Hat Developer Toolset version of OProfile, see Table 13.1, “Tools Distributed with OProfile for Red Hat Developer Toolset”.
OProfile profiles an application without adding any instrumentation by recording the details of every nth event. This allows it to consume fewer resources than Valgrind, but it also causes its samples to be less precise. Unlike Valgrind, which only collects data for a single process and its children in user-space, OProfile is well suited to collect system-wide data on both user-space and kernel-space processes, and requires
rootprivileges to run.
Red Hat Developer Toolset is distributed with OProfile 1.1.0.
Table 13.1. Tools Distributed with OProfile for Red Hat Developer Toolset
13.1. Installing OProfile
In Red Hat Developer Toolset, OProfile is provided by the devtoolset-6-oprofile package and is automatically installed with devtoolset-6-perftools as described in Section 1.5, “Installing Red Hat Developer Toolset”.