CppBenchmark
1.0.4.0
C++ Benchmark Library
|
Threads benchmark base class. More...
#include <benchmark_threads.h>
Public Types | |
typedef SettingsThreads | TSettings |
BenchmarkThreads settings type. More... | |
Public Member Functions | |
template<typename... Types> | |
BenchmarkThreads (const std::string &name, Types... settings) | |
Default class constructor. More... | |
BenchmarkThreads (const std::string &name, const TSettings &settings) | |
Alternative class constructor. More... | |
BenchmarkThreads (const BenchmarkThreads &)=delete | |
BenchmarkThreads (BenchmarkThreads &&)=delete | |
virtual | ~BenchmarkThreads ()=default |
BenchmarkThreads & | operator= (const BenchmarkThreads &)=delete |
BenchmarkThreads & | operator= (BenchmarkThreads &&)=delete |
Public Member Functions inherited from CppBenchmark::BenchmarkBase | |
template<typename... Types> | |
BenchmarkBase (const std::string &name, Types... settings) | |
Default class constructor. More... | |
BenchmarkBase (const std::string &name, const Settings &settings) | |
Alternative class constructor. More... | |
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. More... | |
const Settings & | settings () const |
Get benchmark settings. More... | |
Public Member Functions inherited from CppBenchmark::FixtureThreads | |
FixtureThreads () noexcept=default | |
FixtureThreads (const FixtureThreads &) noexcept=default | |
FixtureThreads (FixtureThreads &&) noexcept=default | |
virtual | ~FixtureThreads () noexcept=default |
FixtureThreads & | operator= (const FixtureThreads &) noexcept=default |
FixtureThreads & | operator= (FixtureThreads &&) noexcept=default |
Protected Member Functions | |
virtual void | RunThread (ContextThreads &context)=0 |
Thread run method. More... | |
Protected Member Functions inherited from CppBenchmark::BenchmarkBase | |
void | InitBenchmarkContext (Context &context) |
Initialize benchmark context. More... | |
Protected Member Functions inherited from CppBenchmark::FixtureThreads | |
virtual void | Initialize (ContextThreads &context) |
Initialize benchmark. More... | |
virtual void | Cleanup (ContextThreads &context) |
Cleanup benchmark. More... | |
virtual void | InitializeThread (ContextThreads &context) |
Initialize thread. More... | |
virtual void | CleanupThread (ContextThreads &context) |
Cleanup thread. More... | |
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. More... | |
static void | UpdateBenchmarkMetrics (PhaseCore &phase) |
Update benchmark metrics for the given benchmark phase. More... | |
static void | UpdateBenchmarkThreads (std::vector< std::shared_ptr< PhaseCore >> &phases) |
Update benchmark threads metrics for the given benchmark phases collection. More... | |
static void | UpdateBenchmarkNames (std::vector< std::shared_ptr< PhaseCore >> &phases) |
Update benchmark names for the given benchmark phases collection. More... | |
static void | UpdateBenchmarkNames (PhaseCore &phase, const std::string &name) |
Update benchmark names for the given benchmark phase. More... | |
static void | UpdateBenchmarkOperations (std::vector< std::shared_ptr< PhaseCore >> &phases) |
Update benchmark operations for the given benchmark phases collection. More... | |
static void | UpdateBenchmarkOperations (PhaseCore &phase) |
Update benchmark operations for the given benchmark phase. More... | |
Protected Attributes inherited from CppBenchmark::BenchmarkBase | |
bool | _launched |
Benchmark launched flag. More... | |
std::string | _name |
Benchmark name. More... | |
Settings | _settings |
Benchmark settings. More... | |
std::vector< std::shared_ptr< PhaseCore > > | _phases |
Benchmark phases. More... | |
Threads benchmark base class.
Provides interface to perform benchmark in multi-thread environment.
Definition at line 25 of file benchmark_threads.h.
BenchmarkThreads settings type.
Definition at line 29 of file benchmark_threads.h.
|
inlineexplicit |
Default class constructor.
Definition at line 37 of file benchmark_threads.h.
|
inlineexplicit |
Alternative class constructor.
Definition at line 43 of file benchmark_threads.h.
|
delete |
|
delete |
|
virtualdefault |
|
delete |
|
delete |
|
protectedpure virtual |
Thread run method.
Should be implemented to provide code which will be executed in separate thread!
context | - Threads running context |