cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::reporter::PlotReporter Class Referencefinal

Class to generate plots of measurement results. More...

#include <stat_bench/reporter/plot_reporter.h>

+ Inheritance diagram for stat_bench::reporter::PlotReporter:
+ Collaboration diagram for stat_bench::reporter::PlotReporter:

Public Member Functions

 PlotReporter (std::string prefix)
 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.
 
- Public Member Functions inherited from stat_bench::reporter::IReporter
 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

- Protected Member Functions inherited from stat_bench::reporter::IReporter
 IReporter ()=default
 Constructor.
 

Detailed Description

Class to generate plots of measurement results.

Definition at line 38 of file plot_reporter.h.

Constructor & Destructor Documentation

◆ PlotReporter()

stat_bench::reporter::PlotReporter::PlotReporter ( std::string prefix)
explicit

Constructor.

Parameters
[in]prefixFile prefix.

Definition at line 41 of file plot_reporter.cpp.

Member Function Documentation

◆ case_finished()

void stat_bench::reporter::PlotReporter::case_finished ( const BenchmarkFullName & case_info)
overridevirtual

Finished a case of a benchmark.

Parameters
[in]case_infoInformation.

Implements stat_bench::reporter::IReporter.

Definition at line 106 of file plot_reporter.cpp.

◆ case_starts()

void stat_bench::reporter::PlotReporter::case_starts ( const BenchmarkFullName & case_info)
overridevirtual

Start a case of a benchmark.

Parameters
[in]case_infoInformation.

Implements stat_bench::reporter::IReporter.

Definition at line 102 of file plot_reporter.cpp.

◆ experiment_finished()

void stat_bench::reporter::PlotReporter::experiment_finished ( const clock::SystemTimePoint & time_stamp)
overridevirtual

Finished an experiment.

Parameters
[in]time_stampTime stamp.

Implements stat_bench::reporter::IReporter.

Definition at line 54 of file plot_reporter.cpp.

◆ experiment_starts()

void stat_bench::reporter::PlotReporter::experiment_starts ( const clock::SystemTimePoint & time_stamp)
overridevirtual

Start an experiment.

Parameters
[in]time_stampTime stamp.

Implements stat_bench::reporter::IReporter.

Definition at line 49 of file plot_reporter.cpp.

◆ group_finished()

void stat_bench::reporter::PlotReporter::group_finished ( const BenchmarkGroupName & name)
overridevirtual

Finished a group of benchmarks.

Parameters
[in]nameGroup name.

Implements stat_bench::reporter::IReporter.

Definition at line 83 of file plot_reporter.cpp.

◆ group_starts()

void stat_bench::reporter::PlotReporter::group_starts ( const BenchmarkGroupName & name,
const bench_impl::BenchmarkGroupConfig & config )
overridevirtual

Start a group of benchmarks.

Parameters
[in]nameGroup name.
[in]configConfiguration.

Implements stat_bench::reporter::IReporter.

Definition at line 77 of file plot_reporter.cpp.

◆ measurement_failed()

void stat_bench::reporter::PlotReporter::measurement_failed ( const BenchmarkFullName & case_info,
const BenchmarkCondition & cond,
const std::exception_ptr & error )
overridevirtual

Failed a measurement.

Parameters
[in]case_infoInformation of the case.
[in]condCondition.
[in]errorError.

Implements stat_bench::reporter::IReporter.

Definition at line 115 of file plot_reporter.cpp.

◆ measurement_succeeded()

void stat_bench::reporter::PlotReporter::measurement_succeeded ( const measurer::Measurement & measurement)
overridevirtual

Successfully finished a measurement.

Parameters
[in]measurementMeasurement.

Implements stat_bench::reporter::IReporter.

Definition at line 110 of file plot_reporter.cpp.

◆ measurer_finished()

void stat_bench::reporter::PlotReporter::measurer_finished ( const measurer::MeasurerName & name)
overridevirtual

Finished benchmarks using a measurer.

Parameters
[in]nameMeasurer name.

Implements stat_bench::reporter::IReporter.

Definition at line 73 of file plot_reporter.cpp.

◆ measurer_starts()

void stat_bench::reporter::PlotReporter::measurer_starts ( const measurer::MeasurerName & name)
overridevirtual

Start benchmarks using a measurer.

Parameters
[in]nameMeasurer name.

Implements stat_bench::reporter::IReporter.

Definition at line 59 of file plot_reporter.cpp.


The documentation for this class was generated from the following files: