Methods Summary |
---|
public void | clearData()Clear all data, prepare for more tests.
points.clear();
|
public synchronized void | markTaskEnd(TaskStats stats, int count)mark the end of a task
int numParallelTasks = nextTaskRunNum - 1 - stats.getTaskRunNum();
// note: if the stats were cleared, might be that this stats object is
// no longer in points, but this is just ok.
stats.markEnd(numParallelTasks, count);
|
public synchronized TaskStats | markTaskStart(org.apache.lucene.benchmark.byTask.tasks.PerfTask task, int round)Mark that a task is starting.
Create a task stats for it and store it as a point.
TaskStats stats = new TaskStats(task, nextTaskRunNum(), round);
points.add(stats);
return stats;
|
private synchronized int | nextTaskRunNum()
return nextTaskRunNum++;
|
public java.util.List | taskStats()Return the current task stats.
the actual task stats are returned, so caller should not modify this task stats.
return points;
|