|
#define | TRACE_GLOBAL(category, name, ...) |
|
#define | TRACE_GLOBAL0(category, name) |
|
#define | TRACE_GLOBAL1(category, name, arg1_name, arg1) |
|
#define | TRACE_GLOBAL2(category, name, arg1_name, arg1, arg2_name, arg2) |
|
Global events are used for events that are not scoped to a thread and do not conceptually have a duration. Examples of this might include the initiation of a system shutdown.
Example:
TRACE_GLOBAL0("Memcached", "Shutdown")
#define TRACE_GLOBAL |
( |
|
category, |
|
|
|
name, |
|
|
|
... |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
"arg1", \
"arg2", \
phosphor::TraceEvent::Type::GlobalInstant, \
__VA_ARGS__)
#define TRACE_GLOBAL0 |
( |
|
category, |
|
|
|
name |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT0( \
category, name, phosphor::TraceEvent::Type::GlobalInstant)
#define TRACE_GLOBAL1 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
"", \
phosphor::TraceEvent::Type::GlobalInstant, \
arg1)
#define TRACE_GLOBAL2 |
( |
|
category, |
|
|
|
name, |
|
|
|
arg1_name, |
|
|
|
arg1, |
|
|
|
arg2_name, |
|
|
|
arg2 |
|
) |
| |
Value:PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
arg2_name, \
phosphor::TraceEvent::Type::GlobalInstant, \
arg1, \
arg2)