Basic profiling with OProfile
After you have OProfile installed, you can get started with basic profiling. These examples show how to gather the profiling information from the system.
Profiling sessions typically consist of two steps: Collection of data using operf or ocount; and then a review of that data using opreport or opannotate. For example, for data collection, use one of the following commands:
operf [options] <my-app>
operf [options] -p <pid-to-trace>
operf [options] [ --system-wide ] <ctrl-c to stop>
ocount [options] <my-app>
followed by some combination of the following commands:
opreport [options]
opannotate [options]