cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Class to report results to consoles. More...
#include <stat_bench/reporter/console_reporter.h>
Public Member Functions | |
ConsoleReporter (std::FILE *file=stdout) | |
Constructor. | |
void | case_finished (const BenchmarkFullName &case_info) override |
Finished a case of a benchmark. | |
void | case_starts (const BenchmarkFullName &case_info) override |
Start a case of a benchmark. | |
void | experiment_finished (const clock::SystemTimePoint &time_stamp) override |
Finished an experiment. | |
void | experiment_starts (const clock::SystemTimePoint &time_stamp) override |
Start an experiment. | |
void | group_finished (const BenchmarkGroupName &name) override |
Finished a group of benchmarks. | |
void | group_starts (const BenchmarkGroupName &name, const bench_impl::BenchmarkGroupConfig &config) override |
Start a group of benchmarks. | |
void | measurement_failed (const BenchmarkFullName &case_info, const BenchmarkCondition &cond, const std::exception_ptr &error) override |
Failed a measurement. | |
void | measurement_succeeded (const measurer::Measurement &measurement) override |
Successfully finished a measurement. | |
void | measurer_finished (const measurer::MeasurerName &name) override |
Finished benchmarks using a measurer. | |
void | measurer_starts (const measurer::MeasurerName &name) override |
Start benchmarks using a measurer. | |
![]() | |
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. | |
Class to report results to consoles.
Definition at line 34 of file console_reporter.h.
|
explicit |
Constructor.
[in] | file | File pointer of the console. |
Definition at line 59 of file console_reporter.cpp.
|
overridevirtual |
Finished a case of a benchmark.
[in] | case_info | Information. |
Implements stat_bench::reporter::IReporter.
Definition at line 134 of file console_reporter.cpp.
|
overridevirtual |
Start a case of a benchmark.
[in] | case_info | Information. |
Implements stat_bench::reporter::IReporter.
Definition at line 130 of file console_reporter.cpp.
|
overridevirtual |
Finished an experiment.
[in] | time_stamp | Time stamp. |
Implements stat_bench::reporter::IReporter.
Definition at line 75 of file console_reporter.cpp.
|
overridevirtual |
Start an experiment.
[in] | time_stamp | Time stamp. |
Implements stat_bench::reporter::IReporter.
Definition at line 61 of file console_reporter.cpp.
|
overridevirtual |
Finished a group of benchmarks.
[in] | name | Group name. |
Implements stat_bench::reporter::IReporter.
Definition at line 125 of file console_reporter.cpp.
|
overridevirtual |
Start a group of benchmarks.
[in] | name | Group name. |
[in] | config | Configuration. |
Implements stat_bench::reporter::IReporter.
Definition at line 114 of file console_reporter.cpp.
|
overridevirtual |
Failed a measurement.
[in] | case_info | Information of the case. |
[in] | cond | Condition. |
[in] | error | Error. |
Implements stat_bench::reporter::IReporter.
Definition at line 172 of file console_reporter.cpp.
|
overridevirtual |
Successfully finished a measurement.
[in] | measurement | Measurement. |
Implements stat_bench::reporter::IReporter.
Definition at line 151 of file console_reporter.cpp.
|
overridevirtual |
Finished benchmarks using a measurer.
[in] | name | Measurer name. |
Implements stat_bench::reporter::IReporter.
Definition at line 89 of file console_reporter.cpp.
|
overridevirtual |
Start benchmarks using a measurer.
[in] | name | Measurer name. |
Implements stat_bench::reporter::IReporter.
Definition at line 81 of file console_reporter.cpp.