Class PauseTimeSummary
- java.lang.Object
-
- com.microsoft.gctoolkit.integration.aggregation.RuntimeAggregation
-
- com.microsoft.gctoolkit.integration.aggregation.PauseTimeAggregation
-
- com.microsoft.gctoolkit.integration.aggregation.PauseTimeSummary
-
- All Implemented Interfaces:
Aggregation
public class PauseTimeSummary extends PauseTimeAggregation
An implementation of PauseTimeAggregation which simply accumulates pause times, and provides methods for getting the total pause time and the percentage of time the application was paused. This is an instance of RuntimeAggregation, which gives us the run time represented by the GC log.
-
-
Constructor Summary
Constructors Constructor Description PauseTimeSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetPercentPaused()Get the amount of time the application was paused as a percentage of total runtime.doublegetRuntime()doublegetTotalPauseTime()Get the total amount of time the application was paused for garbage collection.booleanhasWarning()booleanisEmpty()voidrecordPauseDuration(double duration)Record the duration of a pause event.voidrecordRuntime(double runtime)-
Methods inherited from class com.microsoft.gctoolkit.integration.aggregation.RuntimeAggregation
getRuntimeDuration, getTimeOfFirstEvent, getTimeOfLastEvent, record
-
-
-
-
Method Detail
-
hasWarning
public boolean hasWarning()
- Specified by:
hasWarningin interfaceAggregation- Overrides:
hasWarningin classRuntimeAggregation
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceAggregation- Overrides:
isEmptyin classRuntimeAggregation
-
recordPauseDuration
public void recordPauseDuration(double duration)
Description copied from class:PauseTimeAggregationRecord the duration of a pause event. This method is called from PauseTimeAggregator.- Specified by:
recordPauseDurationin classPauseTimeAggregation- Parameters:
duration- The duration (in decimal seconds) of a GC pause.
-
recordRuntime
public void recordRuntime(double runtime)
- Specified by:
recordRuntimein classPauseTimeAggregation
-
getTotalPauseTime
public double getTotalPauseTime()
Get the total amount of time the application was paused for garbage collection.- Returns:
- The total pause time.
-
getPercentPaused
public double getPercentPaused()
Get the amount of time the application was paused as a percentage of total runtime.- Returns:
- The percentage of time the application was paused.
-
getRuntime
public double getRuntime()
-
-