Class TimeBag


  • public class TimeBag
    extends Object
    Utility class to measure and collect timings of some execution workflow.
    • Constructor Detail

      • TimeBag

        public TimeBag​(boolean record)
        Default constructor.
      • TimeBag

        public TimeBag​(TimeUnit measurementUnit,
                       boolean record)
        Parameters:
        measurementUnit - Measurement unit.
    • Method Detail

      • finishGlobalStage

        public void finishGlobalStage​(String description)
        Parameters:
        description - Description.
      • finishLocalStage

        public void finishLocalStage​(String description)
        Parameters:
        description - Description.
      • stagesTimings

        public List<String> stagesTimings()
        Returns:
        List of string representation of all stage timings.
      • longestLocalStagesTimings

        public List<String> longestLocalStagesTimings​(int maxPerCompositeStage)
        Parameters:
        maxPerCompositeStage - Max count of local stages to collect per composite stage.
        Returns:
        List of string represenation of longest local stages per each composite stage.