protected void writeHTML() throws IOException {
writeHTMLHeader("Plan.Title");
// get information about the current process
ListData overheadPhases = getProcessList("Overhead_Phase_List");
ListData failurePhases = getProcessList("Failure_Phase_List");
// write the size charts
if (metricIsDefined("SIZE_METRIC_NAME")) {
writeChartHTML(LINE_CHART, SIZE_CHART);
writeChartHTML(LINE_CHART, SIZE_ERR_CHART);
}
// write the total time charts
writeChartHTML(LINE_CHART, TIME_CHART);
writeChartHTML(LINE_CHART, TIME_ERR_CHART);
// write overhead time charts
for (int i = 0; i < overheadPhases.size(); i++)
writeChartHTML(LINE_CHART, PCT_TIME_CHART,
fmtArg("phase", overheadPhases.get(i)));
if (overheadPhases.size() > 1)
writeChartHTML(LINE_CHART, PCT_OVERHEAD_TIME_CHART);
// write failure time charts
for (int i = 0; i < failurePhases.size(); i++)
writeChartHTML(LINE_CHART, PCT_TIME_CHART,
fmtArg("phase", failurePhases.get(i)));
if (failurePhases.size() > 1)
writeChartHTML(LINE_CHART, PCT_FAILURE_TIME_CHART);
// write time in phase chart
writeChartHTML(PIE_CHART, PHASE_TIME_CHART);