Class TimeTracker


  • public final class TimeTracker
    extends java.lang.Object
    A container for storing time stamps throughout the lifetime of an Execution instance.

    Check state both when entering and exiting, to allow for arbitrary new queries anywhere inside a search chain.

    Author:
    Steinar Knutsen
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TimeTracker.Activity  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeTracker​(com.yahoo.component.chain.Chain<? extends com.yahoo.processing.Processor> searchChain, int entryIndex)  
      TimeTracker​(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)  
    • Constructor Detail

      • TimeTracker

        public TimeTracker​(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
      • TimeTracker

        public TimeTracker​(com.yahoo.component.chain.Chain<? extends com.yahoo.processing.Processor> searchChain,
                           int entryIndex)
    • Method Detail

      • fillTime

        public long fillTime()
      • first

        public long first()
      • firstFill

        public long firstFill()
      • last

        public long last()
      • pingTime

        public long pingTime()
      • sampleFill

        public void sampleFill​(int searcherIndex,
                               boolean detailed)
      • sampleFillReturn

        public void sampleFillReturn​(int searcherIndex,
                                     boolean detailed,
                                     Result annotationReference)
      • samplePing

        public void samplePing​(int searcherIndex,
                               boolean detailed)
      • samplePingReturn

        public void samplePingReturn​(int searcherIndex,
                                     boolean detailed,
                                     Pong annotationReference)
      • sampleSearch

        public void sampleSearch​(int searcherIndex,
                                 boolean detailed)
      • sampleSearchReturn

        public void sampleSearchReturn​(int searcherIndex,
                                       boolean detailed,
                                       Result annotationReference)
      • searchTime

        public long searchTime()
      • totalTime

        public long totalTime()