strusTrace  0.17
Classes | Typedefs | Functions
strus Namespace Reference

strus toplevel namespace More...

Classes

struct  TraceElement
 Element type used to describe traced structures. Any atomic value or structure is described as sequence of trace elements. More...
 
class  TraceLoggerInterface
 Interface providing a storage object builder interface with tracing and querying of traces. More...
 
class  TraceObjectBuilderInterface
 Interface for creating proxies for Strus objects that log methods called besides calling them. More...
 

Typedefs

typedef unsigned int TraceObjectId
 Unique object identifier. More...
 
typedef unsigned int TraceTimeCounter
 Unique timestamp of logged events. More...
 
typedef std::size_t TraceLogRecordHandle
 Handle of a trace log entry. More...
 

Functions

TraceObjectBuilderInterfacetraceCreateObjectBuilder (TraceLoggerInterface *tracelog, ErrorBufferInterface *errorhnd)
 Create a proxy object to wrap storage and analyzer object builder and all descendant objects to log all methods called besides calling them. More...
 
TraceLoggerInterfacecreateTraceLogger_json (const std::string &config, ErrorBufferInterface *errorhnd)
 Create an interface to the trace logger creating a call tree representation in JSON. More...
 
TraceLoggerInterfacecreateTraceLogger_dump (const std::string &config, ErrorBufferInterface *errorhnd)
 Create an interface to the trace logger writing a trace immediately to stdout or file. More...
 
TraceLoggerInterfacecreateTraceLogger_breakpoint (const std::string &config, ErrorBufferInterface *errorhnd)
 Create an interface to the trace logger than enables you to set debugger breakpoints on specific method calls. More...
 
TraceLoggerInterfacecreateTraceLogger_count (const std::string &config, ErrorBufferInterface *errorhnd)
 Create an interface to the trace logger counting method call events (with the possibility to group by another type of event) ant writing the final counts to stdout or file. More...
 

Detailed Description

strus toplevel namespace

Typedef Documentation

typedef std::size_t strus::TraceLogRecordHandle

Handle of a trace log entry.

typedef unsigned int strus::TraceObjectId

Unique object identifier.

typedef unsigned int strus::TraceTimeCounter

Unique timestamp of logged events.

Function Documentation

TraceLoggerInterface* strus::createTraceLogger_breakpoint ( const std::string &  config,
ErrorBufferInterface *  errorhnd 
)

Create an interface to the trace logger than enables you to set debugger breakpoints on specific method calls.

Parameters
[in]configconfiguration string of the logger
[in]errorhnderror buffer interface
Returns
the logger interface
TraceLoggerInterface* strus::createTraceLogger_count ( const std::string &  config,
ErrorBufferInterface *  errorhnd 
)

Create an interface to the trace logger counting method call events (with the possibility to group by another type of event) ant writing the final counts to stdout or file.

Parameters
[in]configconfiguration string of the logger
[in]errorhnderror buffer interface
Returns
the logger interface
TraceLoggerInterface* strus::createTraceLogger_dump ( const std::string &  config,
ErrorBufferInterface *  errorhnd 
)

Create an interface to the trace logger writing a trace immediately to stdout or file.

Parameters
[in]configconfiguration string of the logger
[in]errorhnderror buffer interface
Returns
the logger interface
TraceLoggerInterface* strus::createTraceLogger_json ( const std::string &  config,
ErrorBufferInterface *  errorhnd 
)

Create an interface to the trace logger creating a call tree representation in JSON.

Parameters
[in]configconfiguration string of the logger
[in]errorhnderror buffer interface
Returns
the logger interface
TraceObjectBuilderInterface* strus::traceCreateObjectBuilder ( TraceLoggerInterface *  tracelog,
ErrorBufferInterface *  errorhnd 
)

Create a proxy object to wrap storage and analyzer object builder and all descendant objects to log all methods called besides calling them.

Parameters
[in]tracelogtrace logger interface to use (ownership passed to returned object)
[in]errorhnderror buffer for error messages and exceptions