DocumentationJava Profiler HelpCPU profilingRecording CPU information. Sampling and tracing.
previous      content      next
Recording CPU information. Sampling and tracing.

First, connect to the profiled application.

CPU profiling controls in the toolbar

The toolbar contains the following CPU profiling controls:

CPU usage graph

The "CPU" tab shows live CPU consumption statistics.

A very useful and unique feature of this graph is that the telemetry information is remembered inside the profiler agent. This allows you to connect to the profiled application on demand and discover how the application behaved in the past.

CPU profiling

You can start and stop CPU profiling during the execution of your application as many times as you want. When CPU profiling is not running, YourKit Java Profiler adds no performance overhead to application being profiled.

Note: In some cases, it also may be useful to launch the application with CPU profiling already started and/or automatically capture CPU snapshot on exit of the profiled application (see Additional options).

CPU profiling can be performed programmatically with the help of the Profiler API

previous      content      next