Class TimeTracker

java.lang.Object
com.yahoo.search.statistics.TimeTracker

public final class TimeTracker extends 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
  • Constructor Details

    • 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 Details

    • 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()