Class ElapsedTime


  • public class ElapsedTime
    extends java.lang.Object
    A collection of TimeTracker instances.
    Author:
    Steinar Knutsen
    • Constructor Summary

      Constructors 
      Constructor Description
      ElapsedTime()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(TimeTracker track)  
      java.lang.String detailedReport()  
      long fillTime()
      Total amount of time spent in all threads for this Execution while fetching document contents, or preparing to fetch them.
      long first()
      Time stamp of start of the first event registered.
      long firstFill()
      The time of the start of the first document fill requested.
      boolean hasDetailedData()  
      long last()
      Time stamp of the end the last event registered.
      void merge​(ElapsedTime other)  
      long pingTime()
      Total amount of time spent in all threads for this Execution while pinging, or preparing to ping, a backend.
      long searchTime()
      Total amount of time spent in all threads for this Execution while searching or waiting for (a) backend(s) doing (a) search(es).
      long totalTime()
      Total amount of time spent for this ElapsedTime instance.
      long weightedFillTime()
      Give an estimate on how much of the time tracked by this instance was used fetching document contents.
      long weightedPingTime()
      Give a relative estimate on how much of the time tracked by this instance was used pinging backends.
      long weightedSearchTime()
      Give a relative estimate on how much of the time tracked by this instance was used searching.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElapsedTime

        public ElapsedTime()
    • Method Detail

      • weightedFillTime

        public long weightedFillTime()
        Give an estimate on how much of the time tracked by this instance was used fetching document contents. This will by definition be smaller than last() - first().
      • fillTime

        public long fillTime()
        Total amount of time spent in all threads for this Execution while fetching document contents, or preparing to fetch them.
      • totalTime

        public long totalTime()
        Total amount of time spent for this ElapsedTime instance.
      • weightedSearchTime

        public long weightedSearchTime()
        Give a relative estimate on how much of the time tracked by this instance was used searching. This will by definition be smaller than last() - first().
      • searchTime

        public long searchTime()
        Total amount of time spent in all threads for this Execution while searching or waiting for (a) backend(s) doing (a) search(es).
      • pingTime

        public long pingTime()
        Total amount of time spent in all threads for this Execution while pinging, or preparing to ping, a backend.
      • weightedPingTime

        public long weightedPingTime()
        Give a relative estimate on how much of the time tracked by this instance was used pinging backends. This will by definition be smaller than last() - first().
      • first

        public long first()
        Time stamp of start of the first event registered.
      • last

        public long last()
        Time stamp of the end the last event registered.
      • firstFill

        public long firstFill()
        The time of the start of the first document fill requested.
      • hasDetailedData

        public boolean hasDetailedData()
      • detailedReport

        public java.lang.String detailedReport()