38 #ifndef Foam_profilingTrigger_H 39 #define Foam_profilingTrigger_H 49 class profilingInformation;
113 #define addProfiling(Name,Descr) \ 114 ::Foam::profilingTrigger profilingTriggerFor##Name(Descr) 118 #define endProfiling(Name) profilingTriggerFor##Name.stop() 124 #define addProfilingInFunction(Name) addProfiling(Name, __PRETTY_FUNCTION__) 126 #define addProfilingInFunction(Name) addProfiling(Name, __func__) bool running() const noexcept
True if the triggered profiling is active.
~profilingTrigger()
Destructor.
Triggers for starting/stopping code profiling.
void operator=(const profilingTrigger &)=delete
No copy assignment.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void stop()
Stop triggered profiling.
profilingTrigger() noexcept
Default construct, no profiling trigger.