9 #ifndef CPPBENCHMARK_PHASE_H
10 #define CPPBENCHMARK_PHASE_H
37 virtual const std::
string&
name() const noexcept = 0;
Benchmark phase base class.
virtual std::shared_ptr< PhaseScope > ScopePhaseThreadSafe(const std::string &phase)=0
Start a new sub-phase with a given name in a multi-thread environment and wrap it in a PhaseScope.
virtual std::shared_ptr< Phase > StartPhaseThreadSafe(const std::string &phase)=0
Start a new sub-phase with a given name in a multi-thread environment.
virtual std::shared_ptr< Phase > StartPhase(const std::string &phase)=0
Start a new sub-phase with a given name in a single-thread environment.
virtual std::shared_ptr< PhaseScope > ScopePhase(const std::string &phase)=0
Start a new sub-phase with a given name in a single-thread environment and wrap it in a PhaseScope.
virtual const PhaseMetrics & metrics() const noexcept=0
Get phase metrics.
virtual const std::string & name() const noexcept=0
Get phase name.
virtual void StopPhase()=0
Stop measurement of the current phase.
C++ Benchmark project definitions.
Benchmark phase metrics definition.