|
CppBenchmark 1.0.5.0
C++ Benchmark Library
|
Producers/Consumers benchmark base class. More...
#include <benchmark_pc.h>
Public Types | |
| typedef SettingsPC | TSettings |
| BenchmarkPC settings type. | |
Public Member Functions | |
| template<typename... Types> | |
| BenchmarkPC (const std::string &name, Types... settings) | |
| Default class constructor. | |
| BenchmarkPC (const std::string &name, const TSettings &settings) | |
| Alternative class constructor. | |
| BenchmarkPC (const BenchmarkPC &)=delete | |
| BenchmarkPC (BenchmarkPC &&)=delete | |
| virtual | ~BenchmarkPC ()=default |
| BenchmarkPC & | operator= (const BenchmarkPC &)=delete |
| BenchmarkPC & | operator= (BenchmarkPC &&)=delete |
Public Member Functions inherited from CppBenchmark::BenchmarkBase | |
| template<typename... Types> | |
| BenchmarkBase (const std::string &name, Types... settings) | |
| Default class constructor. | |
| BenchmarkBase (const std::string &name, const Settings &settings) | |
| Alternative class constructor. | |
| BenchmarkBase (const BenchmarkBase &)=delete | |
| BenchmarkBase (BenchmarkBase &&)=delete | |
| virtual | ~BenchmarkBase ()=default |
| BenchmarkBase & | operator= (const BenchmarkBase &)=delete |
| BenchmarkBase & | operator= (BenchmarkBase &&)=delete |
| const std::string & | name () const |
| Get benchmark name. | |
| const Settings & | settings () const |
| Get benchmark settings. | |
Public Member Functions inherited from CppBenchmark::FixturePC | |
| FixturePC () noexcept=default | |
| FixturePC (const FixturePC &) noexcept=default | |
| FixturePC (FixturePC &&) noexcept=default | |
| virtual | ~FixturePC () noexcept=default |
| FixturePC & | operator= (const FixturePC &) noexcept=default |
| FixturePC & | operator= (FixturePC &&) noexcept=default |
Protected Member Functions | |
| virtual void | RunProducer (ContextPC &context)=0 |
| Producer run method. | |
| virtual void | RunConsumer (ContextPC &context)=0 |
| Consumer run method. | |
Protected Member Functions inherited from CppBenchmark::BenchmarkBase | |
| void | InitBenchmarkContext (Context &context) |
| Initialize benchmark context. | |
Protected Member Functions inherited from CppBenchmark::FixturePC | |
| virtual void | Initialize (ContextPC &context) |
| Initialize benchmark. | |
| virtual void | Cleanup (ContextPC &context) |
| Cleanup benchmark. | |
| virtual void | InitializeProducer (ContextPC &context) |
| Initialize producer. | |
| virtual void | InitializeConsumer (ContextPC &context) |
| Initialize consumer. | |
| virtual void | CleanupProducer (ContextPC &context) |
| Cleanup producer. | |
| virtual void | CleanupConsumer (ContextPC &context) |
| Cleanup consumer. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from CppBenchmark::BenchmarkBase | |
| static void | UpdateBenchmarkMetrics (std::vector< std::shared_ptr< PhaseCore > > &phases) |
| Update benchmark metrics for the given benchmark phases collection. | |
| static void | UpdateBenchmarkMetrics (PhaseCore &phase) |
| Update benchmark metrics for the given benchmark phase. | |
| static void | UpdateBenchmarkThreads (std::vector< std::shared_ptr< PhaseCore > > &phases) |
| Update benchmark threads metrics for the given benchmark phases collection. | |
| static void | UpdateBenchmarkNames (std::vector< std::shared_ptr< PhaseCore > > &phases) |
| Update benchmark names for the given benchmark phases collection. | |
| static void | UpdateBenchmarkNames (PhaseCore &phase, const std::string &name) |
| Update benchmark names for the given benchmark phase. | |
| static void | UpdateBenchmarkOperations (std::vector< std::shared_ptr< PhaseCore > > &phases) |
| Update benchmark operations for the given benchmark phases collection. | |
| static void | UpdateBenchmarkOperations (PhaseCore &phase) |
| Update benchmark operations for the given benchmark phase. | |
Protected Attributes inherited from CppBenchmark::BenchmarkBase | |
| bool | _launched |
| Benchmark launched flag. | |
| std::string | _name |
| Benchmark name. | |
| Settings | _settings |
| Benchmark settings. | |
| std::vector< std::shared_ptr< PhaseCore > > | _phases |
| Benchmark phases. | |
Producers/Consumers benchmark base class.
Provides interface to perform benchmark of the producers/consumers pattern in multi-thread environment.
Definition at line 25 of file benchmark_pc.h.
BenchmarkPC settings type.
Definition at line 29 of file benchmark_pc.h.
|
inlineexplicit |
Default class constructor.
Definition at line 37 of file benchmark_pc.h.
|
inlineexplicit |
Alternative class constructor.
Definition at line 43 of file benchmark_pc.h.
|
delete |
|
delete |
|
virtualdefault |
|
delete |
|
delete |
|
protectedpure virtual |
|
protectedpure virtual |