|
#define | TRACE_EVENT_START(category, name, ...) |
|
#define | TRACE_EVENT_START0(category, name) |
|
#define | TRACE_EVENT_END(category, name, ...) |
|
#define | TRACE_EVENT_END0(category, name) |
|
#define | TRACE_EVENT_START1(category, name, arg1_name, arg1) |
|
#define | TRACE_EVENT_END1(category, name, arg1_name, arg1) |
|
#define | TRACE_EVENT_START2(category, name, arg1_name, arg1, arg2_name, arg2) |
|
#define | TRACE_EVENT_END2(category, name, arg1_name, arg1, arg2_name, arg2) |
|
Synchronous events are used for events that are scoped to a single thread and have a duration.
Example:
TRACE_EVENT_START0('Memcached:Frontend', 'SetKey')
// Perform some expensive operation
TRACE_EVENT_END0('Memcached:Frontend', 'SetKey')
#define TRACE_EVENT_END |
( |
|
category, |
|
|
|
name, |
|
|
|
... |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
"arg1_end", \
"arg2_end", \
phosphor::TraceEvent::Type::SyncEnd, \
__VA_ARGS__)
#define TRACE_EVENT_END0 |
( |
|
category, |
|
|
|
name |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT0( \
category, name, phosphor::TraceEvent::Type::SyncEnd)
#define TRACE_EVENT_END1 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
"", \
phosphor::TraceEvent::Type::SyncEnd, \
arg1)
#define TRACE_EVENT_END2 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1, |
|
|
|
arg2_name, |
|
|
|
arg2 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
arg2_name, \
phosphor::TraceEvent::Type::SyncEnd, \
arg1, \
arg2)
#define TRACE_EVENT_START |
( |
|
category, |
|
|
|
name, |
|
|
|
... |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
"arg1", \
"arg2", \
phosphor::TraceEvent::Type::SyncStart, \
__VA_ARGS__)
#define TRACE_EVENT_START0 |
( |
|
category, |
|
|
|
name |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT0( \
category, name, phosphor::TraceEvent::Type::SyncStart)
#define TRACE_EVENT_START1 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
"", \
phosphor::TraceEvent::Type::SyncStart, \
arg1)
#define TRACE_EVENT_START2 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1, |
|
|
|
arg2_name, |
|
|
|
arg2 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
arg2_name, \
phosphor::TraceEvent::Type::SyncStart, \
arg1, \
arg2)