Different CPU profiling options
As discussed in Chapter 4, Monitoring Java Applications, Java profilers have many different modes and the most commonly used ones are as follows:
- Event-based: This is the mode where the profiler captures the application's events such as as method calls, class loading, thread changes, and so on.
- Instrumental-based: This is the mode where the profiler instruments the application with additional instructions to gather more information. This causes the highest impact on the application's execution time compared to the other types.
- Sampling-based (statistical): This is the mode where the profiler probes the target program's program counter (PC) at regular intervals using operating system interrupts. Sampling profiles are ...