Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

CPU usage estimation

You can estimate CPU usage in given time range, basing on available stack trace telemetry. Profiler will show merged call tree for all the stacks (CPU samples) recorded within the specified time frame and will display number of the samples. The wider selected rage is, i.e. the more samples are merged, then the better is an estimation.

How to invoke

  • Select arbitrary time range in telemetry graph:

  • Select event(s) in probes UI, and use popup menu action:

Comparison with CPU sampling

This feature is similar to CPU sampling, as it also uses sampling approach, but there are sufficient differences:

Comparison criteria CPU usage estimation CPU sampling Comments
Results availability As long as stack telemetry is running Should be explicitly started CPU usage estimation is ideal for analysis of anomalies such as CPU spikes, especially those which has already happened, so you do not need to turn CPU sampling or tracing on and try reproduce the spike.
Accuracy Lower Higher

CPU usage estimation is based on thread telemetry, whose frequency is normally as low as 1 sample per second (can be changed using the startup option telemetryperiod).

CPU usage estimation can adequately measure events not shorter than the thread telemetry period.

So, it suits for measuring events or method calls that last at least several seconds. If the measured event or method call is long enough, the estimation will do its job - locate problematic code responsible for the CPU spike.

For measuring shorter events or methods, use normal CPU profiling, or decrease the telemetry period using the startup option telemetryperiod.

Granularity Results are available for each particular event, as well as for entire time range Results are aggregated for entire period of CPU profiling

CPU usage estimation enables analysis of particular events or time ranges within single snapshot.

CPU profiling results are aggregated since CPU profiling has been started. It is not possible to "extract" CPU profiling results for a smaller time range within one snapshot. However, you can choose which method calls to analyze.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.