Class ReportTask

    • Constructor Detail

      • ReportTask

        public ReportTask​(PerfRunData runData)
    • Method Detail

      • shouldNeverLogAtStart

        protected boolean shouldNeverLogAtStart()
        Description copied from class: PerfTask
        Tasks that should never log at start can override this.
        Overrides:
        shouldNeverLogAtStart in class PerfTask
        Returns:
        true if this task should never log when it start.
      • shouldNotRecordStats

        protected boolean shouldNotRecordStats()
        Description copied from class: PerfTask
        Tasks that should not record statistics can override this.
        Overrides:
        shouldNotRecordStats in class PerfTask
        Returns:
        true if this task should never record its statistics.
      • tableTitle

        protected String tableTitle​(String longestOp)
        Compute a title line for a report table
        Parameters:
        longestOp - size of longest op name in the table
        Returns:
        the table title line.
      • longestOp

        protected String longestOp​(Iterable<TaskStats> taskStats)
        find the longest op name out of completed tasks.
        Parameters:
        taskStats - completed tasks to be considered.
        Returns:
        the longest op name out of completed tasks.
      • taskReportLine

        protected String taskReportLine​(String longestOp,
                                        TaskStats stat)
        Compute a report line for the given task stat.
        Parameters:
        longestOp - size of longest op name in the table.
        stat - task stat to be printed.
        Returns:
        the report line.