Class Overview
Generates a detailed report that contains the results of all of the
benchmark-related unit tests executed during a unit test session. The primary
user of this class is JUnitShell
.
The report is in XML format. To view the XML reports, use benchmarkViewer.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
BenchmarkReport
()
Public Methods
public
void
addBenchmark
(TreeLogger logger, JClassType benchmarkClass)
Adds the Benchmark to the report. All of the metadata about the benchmark
(category, name, description, etc...) is recorded from the TypeOracle.
Parameters
logger
| to log the process |
benchmarkClass
| The benchmark class to record. Must not be
null .
|
public
void
generate
(String outputPath)
Generates reports for all of the benchmarks which were added to the
generator.
Parameters
outputPath
| The path to write the reports to. |
Throws
ParserConfigurationException
| If an error occurs during xml parsing |
IOException
| If anything goes wrong writing to outputPath
|