Go to the documentation of this file.
38 #ifndef profilingTrigger_H
39 #define profilingTrigger_H
49 class profilingInformation;
115 #define addProfiling(name,descr) \
116 ::Foam::profilingTrigger profilingTriggerFor##name(descr)
123 #define addProfilingInFunction(name) \
124 ::Foam::profilingTrigger profilingTriggerFor##name(__PRETTY_FUNCTION__)
126 #define addProfilingInFunction(name) \
127 ::Foam::profilingTrigger profilingTriggerFor##name(__func__)
132 #define endProfiling(name) profilingTriggerFor##name.stop()
profilingTrigger()
Construct null, no profiling trigger.
void stop()
Stop triggered profiling.
bool running() const
True if the triggered profiling is active.
~profilingTrigger()
Destructor.
word name(const complex &c)
Return string representation of complex.
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.
Triggers for starting/stopping code profiling.
#define endProfiling(name)
Remove profiling with specified name.