Phosphor
Instant Events

Macros

#define TRACE_INSTANT(category, name, ...)
 
#define TRACE_INSTANT0(category, name)
 
#define TRACE_INSTANT1(category, name, arg1_name, arg1)
 
#define TRACE_INSTANT2(category, name, arg1_name, arg1, arg2_name, arg2)
 

Detailed Description

Instant events are used for events that are scoped to a thread but do not conceptually have a duration.

Example:

TRACE_INSTANT0("Memcached:Frontend", "StatsReset")

Macro Definition Documentation

#define TRACE_INSTANT (   category,
  name,
  ... 
)
Value:
PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
"arg1", \
"arg2", \
phosphor::TraceEvent::Type::Instant, \
__VA_ARGS__)
#define TRACE_INSTANT0 (   category,
  name 
)
Value:
PHOSPHOR_INTERNAL_TRACE_EVENT0( \
category, name, phosphor::TraceEvent::Type::Instant)
#define TRACE_INSTANT1 (   category,
  name,
  arg1_name,
  arg1 
)
Value:
PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
"", \
phosphor::TraceEvent::Type::Instant, \
arg1)
#define TRACE_INSTANT2 (   category,
  name,
  arg1_name,
  arg1,
  arg2_name,
  arg2 
)
Value:
PHOSPHOR_INTERNAL_TRACE_EVENT( \
category, \
name, \
arg1_name, \
arg2_name, \
phosphor::TraceEvent::Type::Instant, \
arg1, \
arg2)