Dynamic benchmarks executor class. More...
#include <executor.h>
Dynamic benchmarks executor class.
Provides interface to register dynamic benchmarks and report results with external reporters.
Definition at line 21 of file executor.h.
◆ Executor() [1/2] CppBenchmark::Executor::Executor ( const Executor & ) delete ◆ Executor() [2/2] CppBenchmark::Executor::Executor ( Executor && ) delete ◆ ~Executor() CppBenchmark::Executor::~Executor ( ) default ◆ operator=() [1/2] ◆ operator=() [2/2] ◆ Report() void CppBenchmark::Executor::Report ( Reporter & reporter ) staticReport benchmarks results using the given reporter.
Please note the method is thread-safe and might be called in multi-thread environment!
Definition at line 98 of file executor.cpp.
◆ ScopeBenchmark() static std::shared_ptr< PhaseScope > CppBenchmark::Executor::ScopeBenchmark ( const std::string & benchmark ) inlinestaticStart a new dynamic benchmark with a given name and wrap it in a PhaseScope.
Please note the method is thread-safe and might be called in multi-thread environment!
Definition at line 58 of file executor.h.
◆ StartBenchmark() std::shared_ptr< Phase > CppBenchmark::Executor::StartBenchmark ( const std::string & benchmark ) staticStart a new dynamic benchmark with a given name.
This method will create or get existent dynamic benchmark with a given name, start benchmark measurement and return it as a shared pointer. Please note the method is thread-safe and might be called in multi-thread environment!
Definition at line 47 of file executor.cpp.
◆ StopBenchmark() void CppBenchmark::Executor::StopBenchmark ( const std::string & benchmark ) staticStop dynamic benchmark with a given name.
This method will try to find existent dynamic benchmark with a given name and stop benchmark measurement for it. Please note the method is thread-safe and might be called in multi-thread environment!
Definition at line 80 of file executor.cpp.
◆ _benchmarks std::vector<std::shared_ptr<PhaseCore> > CppBenchmark::Executor::_benchmarks protectedRegistered benchmarks collection.
Definition at line 73 of file executor.h.
◆ _mutex std::mutex CppBenchmark::Executor::_mutex protectedSynchronization mutex.
Definition at line 71 of file executor.h.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4