Package com.yahoo.search.statistics
Class TimeTracker
- java.lang.Object
-
- com.yahoo.search.statistics.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
fillTime()
long
first()
long
firstFill()
long
last()
long
pingTime()
void
sampleFill(int searcherIndex, boolean detailed)
void
sampleFillReturn(int searcherIndex, boolean detailed, Result annotationReference)
void
samplePing(int searcherIndex, boolean detailed)
void
samplePingReturn(int searcherIndex, boolean detailed, Pong annotationReference)
void
sampleSearch(int searcherIndex, boolean detailed)
void
sampleSearchReturn(int searcherIndex, boolean detailed, Result annotationReference)
long
searchTime()
long
totalTime()
-
-
-
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()
-
-