Class ReportGenerator

java.lang.Object
de.cuioss.benchmarking.common.report.ReportGenerator

public class ReportGenerator extends Object
Generates HTML reports by creating a data JSON file and copying templates.

This generator now works in conjunction with ReportDataGenerator to:

  1. Generate a standardized benchmark-data.json file with all report data
  2. Copy HTML templates that load and render the JSON data

Templates use JavaScript to dynamically load and display the JSON data, making the system more maintainable and flexible.

  • Constructor Details

  • Method Details

    • generateIndexPage

      public void generateIndexPage(BenchmarkData benchmarkData, BenchmarkType benchmarkType, String outputDir) throws IOException
      Generates the main index page and benchmark data.
      Parameters:
      benchmarkData - the benchmark data to generate reports from
      benchmarkType - the type of benchmark being processed
      outputDir - the output directory for HTML files
      Throws:
      IOException - if writing files fails
    • generateTrendsPage

      public void generateTrendsPage(String outputDir) throws IOException
      Generates the trends page.
      Parameters:
      outputDir - the output directory for HTML files
      Throws:
      IOException - if writing HTML files fails
    • generateDetailedPage

      public void generateDetailedPage(String outputDir) throws IOException
      Generates the detailed visualizer page.
      Parameters:
      outputDir - the output directory for HTML files
      Throws:
      IOException - if writing HTML files fails
    • copySupportFiles

      public void copySupportFiles(String outputDir) throws IOException
      Copies all necessary support files (CSS, JS, etc.) to the output directory.
      Parameters:
      outputDir - the output directory
      Throws:
      IOException - if copying files fails