public class BenchmarkReport
extends java.lang.Object
JUnitShell.
The report is in XML format. To view the XML reports, use benchmarkViewer.| Constructor and Description |
|---|
BenchmarkReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBenchmark(TreeLogger logger,
JClassType benchmarkClass)
Adds the Benchmark to the report.
|
void |
addBenchmarkResults(junit.framework.TestCase test,
com.google.gwt.benchmarks.client.impl.BenchmarkResults results) |
void |
generate(java.lang.String outputPath)
Generates reports for all of the benchmarks which were added to the
generator.
|
public void addBenchmark(TreeLogger logger, JClassType benchmarkClass)
logger - to log the processbenchmarkClass - The benchmark class to record. Must not be
null.public void addBenchmarkResults(junit.framework.TestCase test,
com.google.gwt.benchmarks.client.impl.BenchmarkResults results)
public void generate(java.lang.String outputPath)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException
outputPath - The path to write the reports to.javax.xml.parsers.ParserConfigurationException - If an error occurs during xml parsingjava.io.IOException - If anything goes wrong writing to outputPath