std::shared_ptr<Phase>
StartBenchmark(
conststd::string& benchmark);
58 staticstd::shared_ptr<PhaseScope>
ScopeBenchmark(
conststd::string& benchmark)
59{
returnstd::make_shared<PhaseScope>(
StartBenchmark(benchmark)); }
78 voidReportPhase(
Reporter& reporter,
const PhaseCore& phase,
conststd::string& name)
const;
82{
static Executorinstance;
returninstance; }
Dynamic benchmarks executor class.
Executor & operator=(const Executor &)=delete
std::mutex _mutex
Synchronization mutex.
Executor(const Executor &)=delete
static void StopBenchmark(const std::string &benchmark)
Stop dynamic benchmark with a given name.
static std::shared_ptr< Phase > StartBenchmark(const std::string &benchmark)
Start a new dynamic benchmark with a given name.
static void Report(Reporter &reporter)
Report benchmarks results using the given reporter.
std::vector< std::shared_ptr< PhaseCore > > _benchmarks
Registered benchmarks collection.
Executor & operator=(Executor &&)=delete
static std::shared_ptr< PhaseScope > ScopeBenchmark(const std::string &benchmark)
Start a new dynamic benchmark with a given name and wrap it in a PhaseScope.
Executor(Executor &&)=delete
C++ Benchmark project definitions.
Benchmark phase core definition.
Reporter base definition.
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