38 #ifndef profilingTrigger_H 39 #define profilingTrigger_H 49 class profilingInformation;
114 #define addProfiling(name,descr) \ 115 ::Foam::profilingTrigger profilingTriggerFor##name(descr) 122 #define addProfilingInFunction(name) \ 123 ::Foam::profilingTrigger profilingTriggerFor##name(__PRETTY_FUNCTION__) 125 #define addProfilingInFunction(name) \ 126 ::Foam::profilingTrigger profilingTriggerFor##name(__func__) 131 #define endProfiling(name) profilingTriggerFor##name.stop() profilingTrigger()
Default construct, no profiling trigger.
~profilingTrigger()
Destructor.
Triggers for starting/stopping code profiling.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void stop()
Stop triggered profiling.
bool running() const
True if the triggered profiling is active.