Class HaltsProvider
java.lang.Object
org.openjdk.jmc.flightrecorder.rules.jdk.dataproviders.HaltsProvider
Helper class with useful methods for calculating various data about JVM halts (GC pauses, thread
dumps and so on).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateApplicationHaltsRatio
(org.openjdk.jmc.common.item.IItemCollection items) Calculates the ratio of all application pauses to the total time.static org.openjdk.jmc.common.unit.IQuantity
calculateGcHaltsRatio
(org.openjdk.jmc.common.item.IItemCollection items, org.openjdk.jmc.common.unit.IQuantity startTime, org.openjdk.jmc.common.unit.IQuantity endTime) Calculates the ratio of GC pauses to the total time.static org.openjdk.jmc.common.unit.IQuantity
calculateGcPauseRatio
(org.openjdk.jmc.common.item.IItemCollection items) Calculates the ratio of GC pauses to the total time.static SlidingWindowToolkit.IUnorderedWindowValueFunction<org.openjdk.jmc.common.unit.IQuantity>
-
Constructor Details
-
HaltsProvider
public HaltsProvider()
-
-
Method Details
-
calculateGcPauseRatio
public static org.openjdk.jmc.common.unit.IQuantity calculateGcPauseRatio(org.openjdk.jmc.common.item.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 org.openjdk.jmc.common.unit.IQuantity calculateGcHaltsRatio(org.openjdk.jmc.common.item.IItemCollection items, org.openjdk.jmc.common.unit.IQuantity startTime, org.openjdk.jmc.common.unit.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(org.openjdk.jmc.common.item.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<org.openjdk.jmc.common.unit.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
-