Package com.yahoo.search.statistics
Class TimeTracker
java.lang.Object
com.yahoo.search.statistics.TimeTracker
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
-
Constructor Summary
ConstructorDescriptionTimeTracker
(com.yahoo.component.chain.Chain<? extends com.yahoo.processing.Processor> searchChain, int entryIndex) TimeTracker
(com.yahoo.component.chain.Chain<? extends Searcher> searchChain) -
Method Summary
Modifier and TypeMethodDescriptionlong
fillTime()
long
first()
long
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
long
-
Constructor Details
-
TimeTracker
-
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
-
samplePing
public void samplePing(int searcherIndex, boolean detailed) -
samplePingReturn
-
sampleSearch
public void sampleSearch(int searcherIndex, boolean detailed) -
sampleSearchReturn
-
searchTime
public long searchTime() -
totalTime
public long totalTime()
-