|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.benchmark.byTask.tasks.PerfTask org.apache.lucene.benchmark.byTask.tasks.ReportTask
public abstract class ReportTask
Report (abstract) task - all report tasks extend this task.
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
|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
ReportTask(PerfRunData runData)
|
Method Summary | |
---|---|
protected Report |
genPartialReport(int reported,
LinkedHashMap<String,TaskStats> partOfTasks,
int totalSize)
|
protected String |
longestOp(Iterable<TaskStats> taskStats)
find the longest op name out of completed tasks. |
protected boolean |
shouldNeverLogAtStart()
Tasks that should never log at start can override this. |
protected boolean |
shouldNotRecordStats()
Tasks that should not record statistics can override this. |
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. |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
clone, close, doLogic, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setParams, setRunInBackground, setup, stopNow, supportsParams, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String newline
protected static final String OP
protected static final String ROUND
protected static final String RUNCNT
protected static final String RECCNT
protected static final String RECSEC
protected static final String ELAPSED
protected static final String USEDMEM
protected static final String TOTMEM
protected static final String[] COLS
Constructor Detail |
---|
public ReportTask(PerfRunData runData)
Method Detail |
---|
protected boolean shouldNeverLogAtStart()
PerfTask
shouldNeverLogAtStart
in class PerfTask
protected boolean shouldNotRecordStats()
PerfTask
shouldNotRecordStats
in class PerfTask
protected String tableTitle(String longestOp)
longestOp
- size of longest op name in the table
protected String longestOp(Iterable<TaskStats> taskStats)
taskStats
- completed tasks to be considered.
protected String taskReportLine(String longestOp, TaskStats stat)
longestOp
- size of longest op name in the table.stat
- task stat to be printed.
protected Report genPartialReport(int reported, LinkedHashMap<String,TaskStats> partOfTasks, int totalSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |