VICI
0.11.815
Visual Chart Interpreter
|
This class manages the tracing for an application. More...
#include <vici/trace.h>
Public Types | |
enum | CallEntry { ENTER =+1, EXIT =-1, NONE =0 } |
Indicator for entry or exit of a function. | |
Public Member Functions | |
void | log (csr file, int level, CallEntry call, csr text) |
Write a trace line to the log stream. More... | |
Static Public Member Functions | |
static Tracer & | instance () |
Get an instance of the singleton object. | |
This class manages the tracing for an application.
This class is responsible for managing tracing for an application.
It handles both normal trace messages and function call tracing.
Trace messages are sent to the log stream defined for tracing in the XINI configuration file. The messages have microsecond resolution timestamps to enable accurate comparison of messages from multiple processes.
Tracing can be controlled on a file by file basis by setting the debug level for the file in the tracing section of the XINI configuration file.
Write a trace line to the log stream.
file | determines the debugging level for that file from sourceMap |
level | the current debug level |
call | +1 on entry, -1 on exit, 0 otherwise |
text | the log message |