KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Trace Class Reference

Allows detailed tracing of program execution. More...

#include <Trace.h>

Public Member Functions

void Clear ()
 
void ResetTrace ()
 
bool Load (const char *fn)
 
bool Save (const char *fn)
 
void DumpTrace (std::ostream &out=std::cout) const
 
void DumpStats (std::ostream &out=std::cout) const
 
void Call (const char *function, const char *args=NULL)
 
void CallFmt (const char *function, const char *fmt,...)
 
void EndCall (const char *function, const char *ret=NULL)
 
void EndCallFmt (const char *function, const char *fmt,...)
 
void Log (const char *txt)
 

Public Attributes

TraceFunctionCall root
 
TraceFunctionCallcur
 
std::list< TraceFunctionfuncs
 
Timer timer
 

Detailed Description

Allows detailed tracing of program execution.

Controlled by the user using a sequence of Call/EndCall/Log commands. Call should be called on entry of a function, and EndCall on exit.

Logs 1) Program execution trace 2) Function call statistics: number of calls, time spent in function

See also
EZTrace
EZCallTrace

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