|
#define | TRACE_FUNCTION() _TRACE_FUNCTION_INSTANCE(__LINE__, __ARCH_FUNCTION__, __ARCH_PRETTY_FUNCTION__) |
| Records a timestamp when constructed and a timespan event when destructed, using the name of the function or method as the key.
|
|
#define | TRACE_SCOPE(name) _TRACE_SCOPE_INSTANCE(__LINE__, name) |
| Records a timestamp when constructed and a timespan event when destructed, using name as the key.
|
|
#define | TRACE_FUNCTION_SCOPE(name) |
| Records a timestamp when constructed and a timespan event when destructed, using the name of the function concatenated with name as the key.
|
|
#define | TRACE_MARKER(name) _TRACE_MARKER_INSTANCE(__LINE__, name) |
| Records a timestamp when constructed, using name as the key.
|
|
#define | TRACE_MARKER_DYNAMIC(name) _TRACE_MARKER_DYNAMIC_INSTANCE(__LINE__, name) |
| Records a timestamp when constructed, using name as the key.
|
|
#define | TRACE_COUNTER_DELTA(name, delta) _TRACE_COUNTER_INSTANCE(__LINE__, name, delta, /* isDelta */ true) |
| Records a counter delta using the name as the counter key.
|
|
#define | TRACE_COUNTER_DELTA_DYNAMIC(name, delta) TraceCollector::GetInstance().RecordCounterDelta(name, delta); |
| Records a counter delta using the name as the counter key.
|
|
#define | TRACE_COUNTER_VALUE(name, value) _TRACE_COUNTER_INSTANCE(__LINE__, name, value, /* isDelta */ false) |
| Records a counter value using the name as the counter key.
|
|
#define | TRACE_COUNTER_VALUE_DYNAMIC(name, value) TraceCollector::GetInstance().RecordCounterValue(name, value); |
| Records a counter value using the name as the counter key.
|
|
#define | TRACE_COUNTER_DELTA_CODE(name, code) _TRACE_COUNTER_CODE_INSTANCE(__LINE__, name, code, true) |
| Records a counter value using the name as the counter key.
|
|
#define | TRACE_FUNCTION_DYNAMIC(name) _TRACE_FUNCTION_DYNAMIC_INSTANCE(__LINE__, __ARCH_FUNCTION__, __ARCH_PRETTY_FUNCTION__, name) |
| Records a begin event when constructed and an end event when destructed, using name of the function or method and the supplied name as the key.
|
|
#define | TRACE_SCOPE_DYNAMIC(name) _TRACE_SCOPE_DYNAMIC_INSTANCE(__LINE__, name) |
| Records a begin event when constructed and an end event when destructed, using name as the key.
|
|
#define | _TRACE_FUNCTION_INSTANCE(instance, name, prettyName) |
| These pair a uniquely named TraceScopeHolder with a TraceScopeAuto.
|
|
#define | _TRACE_SCOPE_INSTANCE(instance, name) |
|
#define | _TRACE_FUNCTION_SCOPE_INSTANCE(instance, name, prettyName, scopeName) |
|
#define | _TRACE_MARKER_INSTANCE(instance, name) |
|
#define | _TRACE_COUNTER_INSTANCE(instance, name, value, isDelta) |
|
#define | _TRACE_COUNTER_CODE_INSTANCE(instance, name, code, isDelta) |
|
#define | _TRACE_FUNCTION_DYNAMIC_INSTANCE(instance, fnName, fnPrettyName, name) PXR_NS::TraceAuto TF_PP_CAT(TraceAuto_, instance)(fnName, fnPrettyName, name) |
|
#define | _TRACE_SCOPE_DYNAMIC_INSTANCE(instance, str) PXR_NS::TraceAuto TF_PP_CAT(TraceAuto_, instance)(str) |
|
#define | _TRACE_MARKER_DYNAMIC_INSTANCE(instance, name) TraceCollector::GetInstance().MarkerEvent(name); |
|
#define TRACE_COUNTER_DELTA_CODE |
( |
|
name, |
|
|
|
code |
|
) |
| _TRACE_COUNTER_CODE_INSTANCE(__LINE__, name, code, true) |
Records a counter value using the name as the counter key.
The value can be positive or negative. A positive value will increment the total counter value, whereas a negative value will decrement it. The recorded value will be stored at the currently traced scope, and will propagate up to the parent scopes.
This macro provides the same functionality as TRACE_COUNTER_DELTA, but takes a section of code in brackets, which assumes that a value will be assigned to 'value'. The section of code will not be executed, when tracing is turned off, which makes it possible to gather counter values from potentially expensive logic, without incurring an overhead with tracing turned off.
Usage:
TRACE_COUNTER_DELTA_CODE("My counter", { value = _ComputeExpensiveCounterValue(); })
Definition at line 111 of file trace.h.