com.carrotsearch.junitbenchmarks.h2
Class HistoryChartGenerator

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

public final class HistoryChartGenerator
extends Object

Generate historical view of a given test class (one or more methods).


Constructor Summary
HistoryChartGenerator(Connection connection, String filePrefix, String clazzName, LabelType labelType)
           
 
Method Summary
 void generate()
          Generate the chart's HTML.
 void includeMethod(String methodName)
          Include a given method in the chart.
 void updateMaxRuns(int newMax)
          Update max history steps.
 void updateMinMax(AxisRange r)
          Update min/max fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryChartGenerator

public HistoryChartGenerator(Connection connection,
                             String filePrefix,
                             String clazzName,
                             LabelType labelType)
Parameters:
connection - H2 database connection.
filePrefix - Prefix for output files.
clazzName - The target test class (fully qualified name).
Method Detail

generate

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

Throws:
Exception

includeMethod

public void includeMethod(String methodName)
Include a given method in the chart.


updateMaxRuns

public void updateMaxRuns(int newMax)
Update max history steps.


updateMinMax

public void updateMinMax(AxisRange r)
Update min/max fields.



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