VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
VICI::cdi::Tracer Class Reference

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 Tracerinstance ()
 Get an instance of the singleton object.
 

Detailed Description

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.

Member Function Documentation

void Tracer::log ( csr  file,
int  level,
CallEntry  call,
csr  text 
)

Write a trace line to the log stream.

Parameters
filedetermines the debugging level for that file from sourceMap
levelthe current debug level
call+1 on entry, -1 on exit, 0 otherwise
textthe log message

The documentation for this class was generated from the following files: