com.carrotsearch.junitbenchmarks.h2
Class MethodChartGenerator

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.h2.MethodChartGenerator

public final class MethodChartGenerator
extends Object

Generate a snippet of HTML code for a given class and all of its benchmarked methods.


Constructor Summary
MethodChartGenerator(Connection connection, String filePrefix, int runId, String clazzName)
           
 
Method Summary
 void generate()
          Generate the chart's HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodChartGenerator

public MethodChartGenerator(Connection connection,
                            String filePrefix,
                            int runId,
                            String clazzName)
Parameters:
connection - H2 database connection.
filePrefix - Prefix for generated files.
runId - The run from which to select data.
clazzName - The target test class (fully qualified name).
Method Detail

generate

public void generate()
              throws Exception
Generate the chart's HTML.

Throws:
Exception


Copyright © 2011 Carrot Search s.c.. All Rights Reserved.