public class ElapsedTime extends Object
Modifier and Type | Field and Description |
---|---|
private Set<TimeTracker> |
tracks
A map used as a set to store the time track of all the Execution instances for a Result
|
Constructor and Description |
---|
ElapsedTime() |
Modifier and Type | Method and Description |
---|---|
private long |
absoluteTime(TimeTracker.Activity kind) |
void |
add(TimeTracker track) |
String |
detailedReport() |
private long |
fetcher(TimeTracker.Activity toFetch,
TimeTracker fetchFrom) |
long |
fillTime()
Total amount of time spent in all threads for this Execution while
fetching document contents, or preparing to fetch them.
|
long |
first()
Time stamp of start of the first event registered.
|
long |
firstFill()
The time of the start of the first document fill requested.
|
boolean |
hasDetailedData() |
long |
last()
Time stamp of the end the last event registered.
|
void |
merge(ElapsedTime other) |
long |
pingTime()
Total amount of time spent in all threads for this Execution while
pinging, or preparing to ping, a backend.
|
long |
searchTime()
Total amount of time spent in all threads for this Execution while
searching or waiting for (a) backend(s) doing (a) search(es).
|
long |
totalTime()
Total amount of time spent for this ElapsedTime instance.
|
long |
weightedFillTime()
Give an estimate on how much of the time tracked by this
instance was used fetching document contents.
|
long |
weightedPingTime()
Give a relative estimate on how much of the time tracked by this
instance was used pinging backends.
|
long |
weightedSearchTime()
Give a relative estimate on how much of the time tracked by this
instance was used searching.
|
private long |
weightedTime(TimeTracker.Activity kind) |
private Set<TimeTracker> tracks
public void add(TimeTracker track)
private long fetcher(TimeTracker.Activity toFetch, TimeTracker fetchFrom)
public long weightedFillTime()
private long weightedTime(TimeTracker.Activity kind)
private long absoluteTime(TimeTracker.Activity kind)
public long fillTime()
public long totalTime()
public long weightedSearchTime()
public long searchTime()
public long pingTime()
public long weightedPingTime()
public long first()
public long last()
public void merge(ElapsedTime other)
public long firstFill()
public boolean hasDetailedData()
public String detailedReport()
Copyright © 2018. All rights reserved.