public final class TimeTracker extends Object
Check state both when entering and exiting, to allow for arbitrary new queries anywhere inside a search chain.
Modifier and Type | Class and Description |
---|---|
static class |
TimeTracker.Activity |
Constructor and Description |
---|
TimeTracker(com.yahoo.component.chain.Chain<? extends com.yahoo.processing.Processor> searchChain,
int entryIndex) |
TimeTracker(com.yahoo.component.chain.Chain<? extends Searcher> searchChain) |
Modifier and Type | Method and 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() |
public TimeTracker(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
public TimeTracker(com.yahoo.component.chain.Chain<? extends com.yahoo.processing.Processor> searchChain, int entryIndex)
public long fillTime()
public long first()
public long firstFill()
public long last()
public long pingTime()
public void sampleFill(int searcherIndex, boolean detailed)
public void sampleFillReturn(int searcherIndex, boolean detailed, Result annotationReference)
public void samplePing(int searcherIndex, boolean detailed)
public void samplePingReturn(int searcherIndex, boolean detailed, Pong annotationReference)
public void sampleSearch(int searcherIndex, boolean detailed)
public void sampleSearchReturn(int searcherIndex, boolean detailed, Result annotationReference)
public long searchTime()
public long totalTime()
Copyright © 2018. All rights reserved.