38#ifndef profilingTrigger_H
39#define profilingTrigger_H
49class 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()
Triggers for starting/stopping code profiling.
void stop()
Stop triggered profiling.
bool running() const
True if the triggered profiling is active.
~profilingTrigger()
Destructor.
profilingTrigger()
Default construct, no profiling trigger.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define endProfiling(name)
Remove profiling with specified name.
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.