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

Class to write MsgPack files. More...

#include <stat_bench/reporter/msgpack_reporter.h>

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

Public Member Functions

 MsgPackReporter (std::string file_path)
 Constructor.
 
void write_data_file (const std::string &file_path, const data_file_spec::RootData &data) override
 Write a data file.
 
- Public Member Functions inherited from stat_bench::reporter::DataFileReporterBase
 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.
 
- 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 write MsgPack files.

Definition at line 32 of file msgpack_reporter.h.

Constructor & Destructor Documentation

◆ MsgPackReporter()

stat_bench::reporter::MsgPackReporter::MsgPackReporter ( std::string file_path)
explicit

Constructor.

Parameters
[in]file_pathFile path.

Definition at line 77 of file msgpack_reporter.cpp.

Member Function Documentation

◆ write_data_file()

void stat_bench::reporter::MsgPackReporter::write_data_file ( const std::string & file_path,
const data_file_spec::RootData & data )
overridevirtual

Write a data file.

Parameters
[in]file_pathFile path.
[in]dataData.

Implements stat_bench::reporter::DataFileReporterBase.

Definition at line 80 of file msgpack_reporter.cpp.


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