-# Builds index.html file (main page)
-buildMainPageHtmlReport() {
-cat <<EOT >"index.html"
-<!DOCTYPE html>
-<html>
-<head>
- <title>Performance Review</title>
-</head>
-<body>
- <h1 style="text-align: center;">Performance Review</h1>
- <h4>Last updated for performance job build no. $latestRecordedBuild on $formattedTimestampOfLatestRecordedBuild</h4>
- <p>The performance tests job runs every two hours, providing performance metrics. The following graphs update at 04:15 UTC.</p>
- <p>Successful performance tests job build adds new data, but even if a build fails, existing data is retained.</p>
- <p>Updates occur whenever new successful data is available.</p>
-
- <table align="center">
-EOT
-
-# Loop through the test names and chart file names to generate HTML rows for CPS
-for cps_test_name in "${cps_test_names[@]}"; do
- cat <<EOF >>index.html
- <tr> <!-- Row for $cps_test_name -->
- <td align="center" style="padding: 10px;">
- <figcaption>"$cps_test_name (CPS)"</figcaption>
- <img src="$cps_test_name.png" width="750" height="300">
- </td>
- </tr>
-EOF
-done
-
-# Loop through the test names and chart file names to generate HTML rows for NCMP
-for ncmp_test_name in "${ncmp_test_name_names[@]}"; do
- cat <<EOF >>index.html
- <tr> <!-- Row for $ncmp_test_name -->
- <td align="center" style="padding: 10px;">
- <figcaption>"$ncmp_test_name (NCMP)"</figcaption>
- <img src="$ncmp_test_name.png" width="750" height="300">
- </td>
- </tr>
-EOF
-done
-
-# Close the HTML file
-cat <<EOT >>index.html
- </table>
-</body>
-</html>
-EOT
-}
-
-# Builds sub-HTML pages
-buildSubPageHtmlReport() {
- chartFileName="$1"