Benchmark base class.
More...
#include <benchmark_base.h>
Benchmark base class.
Provides base interface for all benchmarks.
Definition at line 24 of file benchmark_base.h.
◆ BenchmarkBase() [1/4]
template<typename... Types>
CppBenchmark::BenchmarkBase::BenchmarkBase |
( |
const std::string & |
name, |
|
|
Types... |
settings |
|
) |
| |
|
inlineexplicit |
◆ BenchmarkBase() [2/4]
CppBenchmark::BenchmarkBase::BenchmarkBase |
( |
const std::string & |
name, |
|
|
const Settings & |
settings |
|
) |
| |
|
inlineexplicit |
◆ BenchmarkBase() [3/4]
CppBenchmark::BenchmarkBase::BenchmarkBase |
( |
const BenchmarkBase & |
| ) |
|
|
delete |
◆ BenchmarkBase() [4/4]
◆ ~BenchmarkBase()
virtual CppBenchmark::BenchmarkBase::~BenchmarkBase |
( |
| ) |
|
|
virtualdefault |
◆ CountLaunches()
virtual int CppBenchmark::BenchmarkBase::CountLaunches |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ InitBenchmarkContext()
void CppBenchmark::BenchmarkBase::InitBenchmarkContext |
( |
Context & |
context | ) |
|
|
protected |
◆ Launch()
virtual void CppBenchmark::BenchmarkBase::Launch |
( |
int & |
current, |
|
|
int |
total, |
|
|
LauncherHandler & |
handler |
|
) |
| |
|
inlineprotectedvirtual |
Get the count of benchmark launches.
- Parameters
-
current | - Current benchmark number |
total | - Total benchmarks |
handler | - Launcher handler |
Definition at line 81 of file benchmark_base.h.
◆ name()
const std::string& CppBenchmark::BenchmarkBase::name |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ settings()
const Settings& CppBenchmark::BenchmarkBase::settings |
( |
| ) |
const |
|
inline |
◆ UpdateBenchmarkMetrics() [1/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkMetrics |
( |
PhaseCore & |
phase | ) |
|
|
staticprotected |
Update benchmark metrics for the given benchmark phase.
- Parameters
-
Definition at line 41 of file benchmark_base.cpp.
◆ UpdateBenchmarkMetrics() [2/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkMetrics |
( |
std::vector< std::shared_ptr< PhaseCore >> & |
phases | ) |
|
|
staticprotected |
Update benchmark metrics for the given benchmark phases collection.
- Parameters
-
Definition at line 35 of file benchmark_base.cpp.
◆ UpdateBenchmarkNames() [1/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkNames |
( |
PhaseCore & |
phase, |
|
|
const std::string & |
name |
|
) |
| |
|
staticprotected |
Update benchmark names for the given benchmark phase.
- Parameters
-
Definition at line 84 of file benchmark_base.cpp.
◆ UpdateBenchmarkNames() [2/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkNames |
( |
std::vector< std::shared_ptr< PhaseCore >> & |
phases | ) |
|
|
staticprotected |
Update benchmark names for the given benchmark phases collection.
- Parameters
-
Definition at line 78 of file benchmark_base.cpp.
◆ UpdateBenchmarkOperations() [1/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkOperations |
( |
PhaseCore & |
phase | ) |
|
|
staticprotected |
Update benchmark operations for the given benchmark phase.
- Parameters
-
Definition at line 97 of file benchmark_base.cpp.
◆ UpdateBenchmarkOperations() [2/2]
void CppBenchmark::BenchmarkBase::UpdateBenchmarkOperations |
( |
std::vector< std::shared_ptr< PhaseCore >> & |
phases | ) |
|
|
staticprotected |
Update benchmark operations for the given benchmark phases collection.
- Parameters
-
Definition at line 91 of file benchmark_base.cpp.
◆ UpdateBenchmarkThreads()
void CppBenchmark::BenchmarkBase::UpdateBenchmarkThreads |
( |
std::vector< std::shared_ptr< PhaseCore >> & |
phases | ) |
|
|
staticprotected |
Update benchmark threads metrics for the given benchmark phases collection.
- Parameters
-
Definition at line 49 of file benchmark_base.cpp.
◆ Executor
◆ Launcher
◆ _launched
bool CppBenchmark::BenchmarkBase::_launched |
|
protected |
◆ _name
std::string CppBenchmark::BenchmarkBase::_name |
|
protected |
◆ _phases
std::vector<std::shared_ptr<PhaseCore> > CppBenchmark::BenchmarkBase::_phases |
|
protected |
◆ _settings
Settings CppBenchmark::BenchmarkBase::_settings |
|
protected |
The documentation for this class was generated from the following files: