Class 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 Detail

      • PauseTimeSummary

        public PauseTimeSummary()
    • Method Detail

      • recordPauseDuration

        public void recordPauseDuration​(double duration)
        Description copied from class: PauseTimeAggregation
        Record the duration of a pause event. This method is called from PauseTimeAggregator.
        Specified by:
        recordPauseDuration in class PauseTimeAggregation
        Parameters:
        duration - The duration (in decimal seconds) of a GC pause.
      • 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()