CppBenchmark
1.0.4.0
C++ Benchmark Library
|
JSON reporter. More...
#include <reporter_json.h>
Public Member Functions | |
ReporterJSON (std::ostream &stream=std::cout) | |
Default class constructor. More... | |
ReporterJSON (const ReporterJSON &)=delete | |
ReporterJSON (ReporterJSON &&)=delete | |
virtual | ~ReporterJSON ()=default |
ReporterJSON & | operator= (const ReporterJSON &)=delete |
ReporterJSON & | operator= (ReporterJSON &&)=delete |
void | ReportHeader () override |
Report header. More... | |
void | ReportSystem () override |
Report system information. More... | |
void | ReportEnvironment () override |
Report environment information. More... | |
void | ReportBenchmarksHeader () override |
Report all benchmarks header. More... | |
void | ReportBenchmarksFooter () override |
Report all benchmarks footer. More... | |
void | ReportBenchmarkHeader () override |
Report current benchmark header. More... | |
void | ReportBenchmarkFooter () override |
Report current benchmark footer. More... | |
void | ReportBenchmark (const BenchmarkBase &benchmark, const Settings &settings) override |
Report current benchmark information. More... | |
void | ReportPhasesHeader () override |
Report all phases header. More... | |
void | ReportPhasesFooter () override |
Report all phases footer. More... | |
void | ReportPhaseHeader () override |
Report current phase header. More... | |
void | ReportPhaseFooter () override |
Report current phase footer. More... | |
void | ReportPhase (const PhaseCore &phase, const PhaseMetrics &metrics) override |
Report current phase information. More... | |
void | ReportFooter () override |
Report footer. More... | |
Public Member Functions inherited from CppBenchmark::Reporter | |
Reporter ()=default | |
Reporter (const Reporter &)=delete | |
Reporter (Reporter &&)=delete | |
virtual | ~Reporter ()=default |
Reporter & | operator= (const Reporter &)=delete |
Reporter & | operator= (Reporter &&)=delete |
JSON reporter.
Reports benchmarks results in JSON format.
More information about JSON format you can find here: https://en.wikipedia.org/wiki/Comma-separated_values
Definition at line 24 of file reporter_json.h.
|
inline |
Default class constructor.
Initialize reporter with an output stream. Default output stream is std::cout.
stream | - Output stream |
Definition at line 33 of file reporter_json.h.
|
delete |
|
delete |
|
virtualdefault |
|
delete |
|
delete |
|
overridevirtual |
Report current benchmark information.
benchmark | - Current benchmark |
settings | - Current benchmark settings |
Reimplemented from CppBenchmark::Reporter.
Definition at line 95 of file reporter_json.cpp.
|
overridevirtual |
Report current benchmark footer.
Reimplemented from CppBenchmark::Reporter.
Definition at line 89 of file reporter_json.cpp.
|
overridevirtual |
Report current benchmark header.
Reimplemented from CppBenchmark::Reporter.
Definition at line 80 of file reporter_json.cpp.
|
overridevirtual |
Report all benchmarks footer.
Reimplemented from CppBenchmark::Reporter.
Definition at line 74 of file reporter_json.cpp.
|
overridevirtual |
Report all benchmarks header.
Reimplemented from CppBenchmark::Reporter.
Definition at line 66 of file reporter_json.cpp.
|
overridevirtual |
Report environment information.
Reimplemented from CppBenchmark::Reporter.
Definition at line 52 of file reporter_json.cpp.
|
overridevirtual |
Report footer.
Reimplemented from CppBenchmark::Reporter.
Definition at line 252 of file reporter_json.cpp.
|
overridevirtual |
Report header.
Reimplemented from CppBenchmark::Reporter.
Definition at line 33 of file reporter_json.cpp.
|
overridevirtual |
Report current phase information.
phase | - Current phase |
metrics | - Current phase metrics |
Implements CppBenchmark::Reporter.
Definition at line 134 of file reporter_json.cpp.
|
overridevirtual |
Report current phase footer.
Reimplemented from CppBenchmark::Reporter.
Definition at line 128 of file reporter_json.cpp.
|
overridevirtual |
Report current phase header.
Reimplemented from CppBenchmark::Reporter.
Definition at line 119 of file reporter_json.cpp.
|
overridevirtual |
Report all phases footer.
Reimplemented from CppBenchmark::Reporter.
Definition at line 113 of file reporter_json.cpp.
|
overridevirtual |
Report all phases header.
Reimplemented from CppBenchmark::Reporter.
Definition at line 105 of file reporter_json.cpp.
|
overridevirtual |
Report system information.
Reimplemented from CppBenchmark::Reporter.
Definition at line 39 of file reporter_json.cpp.