Tracer printing a log message upon creation and destruction.
This class is intended to be used via the WALBERLA_TRACE_IN macro. Place "WALBERLA_TRACE_IN;" at the beginning of a function to have a log message printed when control flow enters the function and another one when it leaves the function's scope. Note that messages are printed only if "WALBERLA_LOGLEVEL" is set to "TRACING" in CMake cache and the runtime log level of Logging is set to TRACING!
#include <Tracing.h>
Public Member Functions | |
Tracer (const std::string &functionName, const std::string &fileName, int lineNumber) | |
~Tracer () | |
Private Attributes | |
std::string | functionName_ |
std::string | fileName_ |
int | lineNumber_ |
|
inline |
|
inline |
|
private |
|
private |
|
private |