Class HaltsProvider
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.dataproviders.HaltsProvider
-
public class HaltsProvider extends Object
Helper class with useful methods for calculating various data about JVM halts (GC pauses, thread dumps and so on).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HaltsProvider.ApplicationHaltsInfoHolder
-
Constructor Summary
Constructors Constructor Description HaltsProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SlidingWindowToolkit.IUnorderedWindowValueFunction<HaltsProvider.ApplicationHaltsInfoHolder>
applicationHaltsRatioFunction()
static HaltsProvider.ApplicationHaltsInfoHolder
calculateApplicationHaltsRatio(IItemCollection items)
Calculates the ratio of all application pauses to the total time.static IQuantity
calculateGcHaltsRatio(IItemCollection items, IQuantity startTime, IQuantity endTime)
Calculates the ratio of GC pauses to the total time.static IQuantity
calculateGcPauseRatio(IItemCollection items)
Calculates the ratio of GC pauses to the total time.static SlidingWindowToolkit.IUnorderedWindowValueFunction<IQuantity>
gcHaltsRatioFunction()
-
-
-
Method Detail
-
calculateGcPauseRatio
public static IQuantity calculateGcPauseRatio(IItemCollection items)
Calculates the ratio of GC pauses to the total time.- Parameters:
items
- items to do calculation on- Returns:
- GC/total ratio in percent
-
calculateGcHaltsRatio
public static IQuantity calculateGcHaltsRatio(IItemCollection items, IQuantity startTime, IQuantity endTime)
Calculates the ratio of GC pauses to the total time.- Parameters:
items
- items to do calculation onstartTime
- start of timespan to do calculation inendTime
- end of timespan to do calculation in- Returns:
- GC/total ratio in percent
-
calculateApplicationHaltsRatio
public static HaltsProvider.ApplicationHaltsInfoHolder calculateApplicationHaltsRatio(IItemCollection items)
Calculates the ratio of all application pauses to the total time.- Parameters:
items
- items to do calculation on- Returns:
- pauses/total ratio in percent
-
gcHaltsRatioFunction
public static SlidingWindowToolkit.IUnorderedWindowValueFunction<IQuantity> gcHaltsRatioFunction()
- Returns:
- function to use when calculating GC halts using sliding windows
-
applicationHaltsRatioFunction
public static SlidingWindowToolkit.IUnorderedWindowValueFunction<HaltsProvider.ApplicationHaltsInfoHolder> applicationHaltsRatioFunction()
- Returns:
- function to use when calculating application halts using sliding windows
-
-