42 #define TRACE(n) VICI::cdi::Trace( n, __FILE__ ) << __LINE__ << ": "
44 #define TRACE(n) VICI::cdi::NullTrace()
48 #ifdef _VICI_FN_TRACING
49 #define FN_TRACE(n,x) VICI::cdi::CallTrace _trace( n, x, __FILE__ )
127 std::ostringstream ss;
135 explicit Trace(
int n );
178 std::map< pid_t, int > callLevel;
179 std::map< pid_t, bool > doBraces;
182 static const int DISABLED = -1;
187 std::map< std::string, int > sourceMap;
189 static void signalHandler(
int );
Trace(int n)
Constructor.
Definition: trace.cpp:69
CallEntry
Indicator for entry or exit of a function.
Definition: trace.h:201
This class is used to create trace log entries.
Definition: trace.h:123
A class for dummy trace objects.
Definition: trace.h:98
~CallTrace()
Destructor.
Definition: trace.cpp:58
This class manages the tracing for an application.
Definition: trace.h:173
NullTrace & operator<<(T x)
Noop version of stream function.
Definition: trace.h:105
NullTrace()
Constructor.
Definition: trace.h:102
Trace & operator<<(T x)
Stream output operator.
Definition: trace.h:145
Class to create a call trace.
Definition: trace.h:65
~Trace()
Destructor.
Definition: trace.cpp:83
const std::string & csr
short cut for string constants
Definition: vici.h:80
CallTrace(int level, csr methodName, csr file)
Constructor.
Definition: trace.cpp:48
void log(csr file, int level, CallEntry call, csr text)
Write a trace line to the log stream.
Definition: trace.cpp:189
static Tracer & instance()
Get an instance of the singleton object.
Definition: trace.cpp:179