public abstract class ReportTask extends PerfTask
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ReportTask(PerfRunData runData) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, close, doLogic, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setParams, setRunInBackground, setup, stopNow, supportsParams, tearDown, toString
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
public ReportTask(PerfRunData runData)
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 tableprotected 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)