|
enum | Type : char {
AsyncStart,
AsyncEnd,
SyncStart,
SyncEnd,
Instant,
GlobalInstant
} |
|
The enumeration representing the different types of TraceEvents
phosphor::TraceEvent::TraceEvent |
( |
| ) |
|
|
default |
Default constructor for efficient TraceChunk initialisation
Constructor for creating new events
- Parameters
-
_tpi | Tracepoint info for the event |
_type | The event type |
_args | An array of Value |
_arg_types | An array of argument types |
const std::array< const char *, arg_count > & phosphor::TraceEvent::getArgNames |
( |
| ) |
const |
- Returns
- the names of the arguments of the event
const std::array< TraceArgument, arg_count > & phosphor::TraceEvent::getArgs |
( |
| ) |
const |
- Returns
- the arguments of the event
const std::array< TraceArgument::Type, arg_count > & phosphor::TraceEvent::getArgTypes |
( |
| ) |
const |
- Returns
- the types of the arguments of the event
const char * phosphor::TraceEvent::getCategory |
( |
| ) |
const |
- Returns
- the category of the event
const char * phosphor::TraceEvent::getName |
( |
| ) |
const |
- Returns
- the name of the event
uint64_t phosphor::TraceEvent::getThreadID |
( |
| ) |
const |
- Returns
- the thread id of the event
int64_t phosphor::TraceEvent::getTime |
( |
| ) |
const |
- Returns
- the timestamp of the event measured in nanoseconds from an undefined epoch
- Returns
- the type of the event
std::string phosphor::TraceEvent::to_json |
( |
| ) |
const |
Used to get a JSON object representation of the TraceEvent
- Returns
- JSON object representing the TraceEvent
std::string phosphor::TraceEvent::to_string |
( |
| ) |
const |
Used to get a string representation of the TraceEvent
- Returns
- string representation of the TraceEvent
Get the required JSON parts for the type of the object. i.e. the event type character and any bonus strings.
- Returns
- pair where first is the type character and the second is any bonus parts of the JSON row
const char * phosphor::TraceEvent::typeToString |
( |
Type |
type | ) |
|
|
static |
Converts a TraceEvent::Type to a cstring
- Returns
- cstring representing the given event type
The documentation for this class was generated from the following files: