version 1.4, 2002/01/17 05:33:49
|
version 1.5, 2002/02/15 23:01:20
|
|
|
#ifdef PEGASUS_REMOVE_TRACE | #ifdef PEGASUS_REMOVE_TRACE |
#define PEG_FUNC_ENTER(traceComponent,methodName) | #define PEG_FUNC_ENTER(traceComponent,methodName) |
#define PEG_FUNC_EXIT(traceComponent,methodName) | #define PEG_FUNC_EXIT(traceComponent,methodName) |
|
#define PEG_METHOD_ENTER(traceComponent,methodName) |
|
#define PEG_METHOD_EXIT() |
#else | #else |
/** Macro for tracing method entry | /** Macro for tracing method entry |
|
ATTN: Phase out in favor of PEG_METHOD_ENTER |
@param traceComponent component being traced | @param traceComponent component being traced |
@param methodName name of the method | @param methodName name of the method |
*/ | */ |
|
|
Tracer::traceEnter(__FILE__, __LINE__,traceComponent,methodName) | Tracer::traceEnter(__FILE__, __LINE__,traceComponent,methodName) |
| |
/** Macro for tracing method exit | /** Macro for tracing method exit |
|
ATTN: Phase out in favor of PEG_METHOD_EXIT |
@param traceComponent component being traced | @param traceComponent component being traced |
@param methodName name of the method | @param methodName name of the method |
*/ | */ |
#define PEG_FUNC_EXIT(traceComponent,methodName) \ | #define PEG_FUNC_EXIT(traceComponent,methodName) \ |
Tracer::traceExit(__FILE__,__LINE__,traceComponent,methodName) | Tracer::traceExit(__FILE__,__LINE__,traceComponent,methodName) |
|
|
|
/** Macro for tracing method entry |
|
@param traceComponent component being traced |
|
@param methodName name of the method |
|
*/ |
|
#define PEG_METHOD_ENTER(traceComponent,methodName) \ |
|
const char *PEG_METHOD_NAME = methodName; \ |
|
const Uint32 PEG_TRACE_COMPONENT = traceComponent; \ |
|
Tracer::traceEnter(__FILE__,__LINE__,PEG_TRACE_COMPONENT,PEG_METHOD_NAME) |
|
|
|
/** Macro for tracing method exit |
|
*/ |
|
#define PEG_METHOD_EXIT() \ |
|
Tracer::traceExit(__FILE__,__LINE__,PEG_TRACE_COMPONENT,PEG_METHOD_NAME) |
#endif | #endif |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |