org.apache.lucene.benchmark.byTask.tasks
public abstract class ReportTask extends PerfTask
| Field Summary | |
|---|---|
| protected static String[] | COLS |
| protected static String | ELAPSED |
| protected static String | newline |
| protected static String | OP
Get a textual summary of the benchmark results, average from all test runs. |
| protected static String | RECCNT |
| protected static String | RECSEC |
| protected static String | ROUND |
| protected static String | RUNCNT |
| protected static String | TOTMEM |
| protected static String | USEDMEM |
| Constructor Summary | |
|---|---|
| ReportTask(PerfRunData runData) | |
| Method Summary | |
|---|---|
| protected Report | genPartialReport(int reported, LinkedHashMap partOfTasks, int totalSize) |
| protected String | longestOp(Iterator taskStats)
find the longest op name out of completed tasks. |
| protected boolean | shouldNeverLogAtStart() |
| protected boolean | shouldNotRecordStats() |
| protected String | tableTitle(String longestOp)
Compute a title line for a report table |
| protected String | taskReportLine(String longestOp, TaskStats stat)
Compute a report line for the given task stat. |
Parameters: taskStats completed tasks to be considered.
Returns: the longest op name out of completed tasks.
Parameters: longestOp size of longest op name in the table
Returns: the table title line.
Parameters: longestOp size of longest op name in the table. stat task stat to be printed.
Returns: the report line.