9 #ifndef CPPBENCHMARK_LAUNCHER_H
10 #define CPPBENCHMARK_LAUNCHER_H
58 virtual void Launch(
const std::string& pattern =
"");
75 std::vector<std::function<std::shared_ptr<BenchmarkBase>()>>
_builders;
78 void ReportPhase(
Reporter& reporter,
const PhaseCore& phase,
const std::string& name)
const;
79 void ReportPhaseHistograms(int32_t resolution,
const PhaseCore& phase,
const std::string& name)
const;
80 void ReportPhaseHistogram(int32_t resolution,
const PhaseCore& phase,
const std::string& name)
const;
Producers/Consumers benchmark base definition.
Threads benchmark base definition.
void ClearAllBenchmarks()
Clear benchmarks collection.
virtual void Launch(const std::string &pattern="")
Launch registered benchmarks.
Launcher(Launcher &&)=delete
Launcher & operator=(const Launcher &)=delete
std::vector< std::function< std::shared_ptr< BenchmarkBase >)> > _builders
Benchmark builders collection.
void Report(Reporter &reporter) const
Report benchmarks results using the given reporter.
Launcher & operator=(Launcher &&)=delete
void AddBenchmarkBuilder(const std::function< std::shared_ptr< BenchmarkBase >()> &builder)
Add the given benchmark builder function to the benchmark builders collection.
virtual ~Launcher()=default
void ReportHistograms(int32_t resolution) const
Report benchmarks High Dynamic Range (HDR) Histograms.
std::vector< std::shared_ptr< BenchmarkBase > > _benchmarks
Registered benchmarks collection.
Launcher(const Launcher &)=delete
void ClearAllBenchmarksBuilders()
Clear benchmark builders collection.
void AddBenchmark(const std::shared_ptr< BenchmarkBase > &benchmark)
Add the given benchmark to the benchmarks collection.
Launcher handler definition.
C++ Benchmark project definitions.
Reporter base definition.