Fields Summary |
---|
private org.apache.lucene.benchmark.byTask.tasks.PerfTask | tasktask for which data was collected |
private int | roundround in which task run started |
private long | starttask start time |
private long | elapsedtask elapsed time. elapsed >= 0 indicates run completion! |
private long | maxTotMemmax tot mem during task |
private long | maxUsedMemmax used mem during task |
private int | taskRunNumserial run number of this task run in the perf run |
private int | numParallelTasksnumber of other tasks that started to run while this task was still running |
private int | countnumber of work items done by this task.
For indexing that can be number of docs added.
For warming that can be number of scanned items, etc.
For repeating tasks, this is a sum over repetitions. |
private int | numRunsNumber of similar tasks aggregated into this record.
Used when summing up on few runs/instances of similar tasks. |
Methods Summary |
---|
public void | add(org.apache.lucene.benchmark.byTask.stats.TaskStats stat2)Add data from another stat, for aggregation
numRuns += stat2.getNumRuns();
elapsed += stat2.getElapsed();
maxTotMem += stat2.getMaxTotMem();
maxUsedMem += stat2.getMaxUsedMem();
count += stat2.getCount();
if (round != stat2.round) {
round = -1; // no meaning if agregating tasks of different ruond.
}
|
public java.lang.Object | clone()
return super.clone();
|
public int | getCount()
return count;
|
public long | getElapsed()
return elapsed;
|
public long | getMaxTotMem()
return maxTotMem;
|
public long | getMaxUsedMem()
return maxUsedMem;
|
public int | getNumParallelTasks()
return numParallelTasks;
|
public int | getNumRuns()
return numRuns;
|
public int | getRound()
return round;
|
public org.apache.lucene.benchmark.byTask.tasks.PerfTask | getTask()
return task;
|
public int | getTaskRunNum()
return taskRunNum;
|
void | markEnd(int numParallelTasks, int count)mark the end of a task
elapsed = System.currentTimeMillis() - start;
long totMem = Runtime.getRuntime().totalMemory();
if (totMem > maxTotMem) {
maxTotMem = totMem;
}
long usedMem = totMem - Runtime.getRuntime().freeMemory();
if (usedMem > maxUsedMem) {
maxUsedMem = usedMem;
}
this.numParallelTasks = numParallelTasks;
this.count = count;
|
public java.lang.String | toString()
StringBuffer res = new StringBuffer(task.getName());
res.append(" ");
res.append(count);
res.append(" ");
res.append(elapsed);
return res.toString();
|