The oprofile
package and its dependencies install all the necessary utilities for performing an OProfile profile run. To instruct the OProfile to profile all the application running on the system and to group the samples for the shared libraries with the application using the library, run the following command as root:
opcontrol --no-vmlinux --separate=library --start
You can also start the OProfile daemon without collecting system data. To do so, use the option --start-daemon
instead. The --stop
option halts data collection, while the --shutdown
terminates the OProfile daemon.
Use opreport
, opannotate
, or opgprof
to display the collected profiling data. By default, the data collected by the OProfile daemon is stored in /var/lib/oprofile/samples/
.