com.carrotsearch.junitbenchmarks.db
Class HistoryChartGenerator

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

public final class HistoryChartGenerator
extends Object

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


Constructor Summary
HistoryChartGenerator(String filePrefix, String clazzName, LabelType labelType, DbConsumer consumer)
           
 
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(String filePrefix,
                             String clazzName,
                             LabelType labelType,
                             DbConsumer consumer)
Parameters:
consumer - the database consumer.
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 © 2013 Carrot Search s.c.. All Rights Reserved.