cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Base class to write data files. More...
#include <stat_bench/reporter/data_file_reporter_base.h>
Public Member Functions | |
DataFileReporterBase (std::string file_path) | |
Constructor. | |
void | case_finished (const BenchmarkFullName &case_info) final |
Finished a case of a benchmark. | |
void | case_starts (const BenchmarkFullName &case_info) final |
Start a case of a benchmark. | |
void | experiment_finished (const clock::SystemTimePoint &time_stamp) final |
Finished an experiment. | |
void | experiment_starts (const clock::SystemTimePoint &time_stamp) final |
Start an experiment. | |
void | group_finished (const BenchmarkGroupName &name) final |
Finished a group of benchmarks. | |
void | group_starts (const BenchmarkGroupName &name, const bench_impl::BenchmarkGroupConfig &config) final |
Start a group of benchmarks. | |
void | measurement_failed (const BenchmarkFullName &case_info, const BenchmarkCondition &cond, const std::exception_ptr &error) final |
Failed a measurement. | |
void | measurement_succeeded (const measurer::Measurement &measurement) final |
Successfully finished a measurement. | |
void | measurer_finished (const measurer::MeasurerName &name) final |
Finished benchmarks using a measurer. | |
void | measurer_starts (const measurer::MeasurerName &name) final |
Start benchmarks using a measurer. | |
virtual void | write_data_file (const std::string &file_path, const data_file_spec::RootData &data)=0 |
Write a data file. | |
![]() | |
IReporter (const IReporter &)=delete | |
IReporter (IReporter &&)=delete | |
virtual | ~IReporter ()=default |
Destructor. | |
auto | operator= (const IReporter &) -> IReporter &=delete |
auto | operator= (IReporter &&) -> IReporter &=delete |
Additional Inherited Members | |
![]() | |
IReporter ()=default | |
Constructor. | |
Base class to write data files.
Definition at line 33 of file data_file_reporter_base.h.
|
explicit |
Constructor.
[in] | file_path | File path. |
Definition at line 33 of file data_file_reporter_base.cpp.
|
finalvirtual |
Finished a case of a benchmark.
[in] | case_info | Information. |
Implements stat_bench::reporter::IReporter.
Definition at line 73 of file data_file_reporter_base.cpp.
|
finalvirtual |
Start a case of a benchmark.
[in] | case_info | Information. |
Implements stat_bench::reporter::IReporter.
Definition at line 69 of file data_file_reporter_base.cpp.
|
finalvirtual |
Finished an experiment.
[in] | time_stamp | Time stamp. |
Implements stat_bench::reporter::IReporter.
Definition at line 42 of file data_file_reporter_base.cpp.
|
finalvirtual |
Start an experiment.
[in] | time_stamp | Time stamp. |
Implements stat_bench::reporter::IReporter.
Definition at line 36 of file data_file_reporter_base.cpp.
|
finalvirtual |
Finished a group of benchmarks.
[in] | name | Group name. |
Implements stat_bench::reporter::IReporter.
Definition at line 65 of file data_file_reporter_base.cpp.
|
finalvirtual |
Start a group of benchmarks.
[in] | name | Group name. |
[in] | config | Configuration. |
Implements stat_bench::reporter::IReporter.
Definition at line 60 of file data_file_reporter_base.cpp.
|
finalvirtual |
Failed a measurement.
[in] | case_info | Information of the case. |
[in] | cond | Condition. |
[in] | error | Error. |
Implements stat_bench::reporter::IReporter.
Definition at line 83 of file data_file_reporter_base.cpp.
|
finalvirtual |
Successfully finished a measurement.
[in] | measurement | Measurement. |
Implements stat_bench::reporter::IReporter.
Definition at line 78 of file data_file_reporter_base.cpp.
|
finalvirtual |
Finished benchmarks using a measurer.
[in] | name | Measurer name. |
Implements stat_bench::reporter::IReporter.
Definition at line 55 of file data_file_reporter_base.cpp.
|
finalvirtual |
Start benchmarks using a measurer.
[in] | name | Measurer name. |
Implements stat_bench::reporter::IReporter.
Definition at line 50 of file data_file_reporter_base.cpp.
|
pure virtual |
Write a data file.
[in] | file_path | File path. |
[in] | data | Data. |
Implemented in stat_bench::reporter::CompressedMsgPackReporter, stat_bench::reporter::JsonReporter, and stat_bench::reporter::MsgPackReporter.