Download OProfile manual
Transcript
http://oprofile.sourceforge.net/doc/introduction.html Chapter 1. Introduction Prev Next Chapter 1. Introduction Table of Contents 1. Applications of OProfile 1.1. Support for dynamically compiled (JIT) code 2. System requirements 3. Internet resources 4. Installation 5. Uninstalling OProfile This manual applies to OProfile version 0.9.4. OProfile is a profiling system for Linux 2.2/2.4/2.6 systems on a number of architectures. It is capable of profiling all parts of a running system, from the kernel (including modules and interrupt handlers) to shared libraries to binaries. It runs transparently in the background collecting information at a low overhead. These features make it ideal for profiling entire systems to determine bottle necks in real-world systems. Many CPUs provide "performance counters", hardware registers that can count "events"; for example, cache misses, or CPU cycles. OProfile provides profiles of code based on the number of these occurring events: repeatedly, every time a certain (configurable) number of events has occurred, the PC value is recorded. This information is aggregated into profiles for each binary image. Some hardware setups do not allow OProfile to use performance counters: in these cases, no events are available, and OProfile operates in timer/RTC mode, as described in later chapters. 1. Applications of OProfile OProfile is useful in a number of situations. You might want to use OProfile when you : ● need low overhead ● cannot use highly intrusive profiling methods ● need to profile interrupt handlers ● need to profile an application and its shared libraries ● need to profile dynamically compiled code of supported virtual machines (see Section 1.1, “Support for dynamically compiled (JIT) code”) ● need to capture the performance behaviour of entire system ● want to examine hardware effects such as cache misses ● want detailed source annotation ● want instruction-level profiles