|
CppBenchmark 1.0.5.0
C++ Benchmark Library
|
#include <benchmark.h>
Public Types | |
| typedef Settings | TSettings |
| Benchmark settings type. | |
Public Member Functions | |
| template<typename... Types> | |
| Benchmark (const std::string &name, Types... settings) | |
| Default class constructor. | |
| Benchmark (const std::string &name, const TSettings &settings) | |
| Alternative class constructor. | |
| Benchmark (const Benchmark &)=delete | |
| Benchmark (Benchmark &&)=delete | |
| virtual | ~Benchmark ()=default |
| Benchmark & | operator= (const Benchmark &)=delete |
| Benchmark & | operator= (Benchmark &&)=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::Fixture | |
| Fixture () noexcept=default | |
| Fixture (const Fixture &) noexcept=default | |
| Fixture (Fixture &&) noexcept=default | |
| virtual | ~Fixture () noexcept=default |
| Fixture & | operator= (const Fixture &) noexcept=default |
| Fixture & | operator= (Fixture &&) noexcept=default |
Protected Member Functions | |
| virtual void | Run (Context &context)=0 |
| Benchmark run method. | |
Protected Member Functions inherited from CppBenchmark::BenchmarkBase | |
| void | InitBenchmarkContext (Context &context) |
| Initialize benchmark context. | |
Protected Member Functions inherited from CppBenchmark::Fixture | |
| virtual void | Initialize (Context &context) |
| Initialize benchmark. | |
| virtual void | Cleanup (Context &context) |
| Cleanup benchmark. | |
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. | |
Benchmark class.
Provides interface to perform single thread benchmark.
Definition at line 21 of file benchmark.h.
Benchmark settings type.
Definition at line 25 of file benchmark.h.
|
inlineexplicit |
Default class constructor.
Definition at line 33 of file benchmark.h.
|
inlineexplicit |
Alternative class constructor.
Definition at line 39 of file benchmark.h.
|
delete |
|
delete |
|
virtualdefault |
|
protectedpure virtual |