LLVM  8.0.1
Public Attributes | List of all members
llvm::xray::XRayRecord Struct Reference

An XRayRecord is the denormalized view of data associated in a trace. More...

#include "llvm/XRay/XRayRecord.h"

Collaboration diagram for llvm::xray::XRayRecord:
Collaboration graph
[legend]

Public Attributes

uint16_t RecordType
 RecordType values are used as "sub-types" which have meaning in the context of the Type below. More...
 
uint16_t CPU
 The CPU where the thread is running. We assume number of CPUs <= 65536. More...
 
RecordTypes Type
 Identifies the type of record. More...
 
int32_t FuncId
 The function ID for the record, if this is a function call record. More...
 
uint64_t TSC
 Get the full 8 bytes of the TSC when we get the log record. More...
 
uint32_t TId
 The thread ID for the currently running thread. More...
 
uint32_t PId
 The process ID for the currently running process. More...
 
std::vector< uint64_t > CallArgs
 The function call arguments. More...
 
std::string Data
 For custom and typed events, we provide the raw data from the trace. More...
 

Detailed Description

An XRayRecord is the denormalized view of data associated in a trace.

These records may not correspond to actual entries in the raw traces, but they are the logical representation of records in a higher-level event log.

Definition at line 70 of file XRayRecord.h.

Member Data Documentation

◆ CallArgs

std::vector<uint64_t> llvm::xray::XRayRecord::CallArgs

The function call arguments.

Definition at line 96 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ CPU

uint16_t llvm::xray::XRayRecord::CPU

The CPU where the thread is running. We assume number of CPUs <= 65536.

Definition at line 78 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ Data

std::string llvm::xray::XRayRecord::Data

For custom and typed events, we provide the raw data from the trace.

Definition at line 99 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ FuncId

int32_t llvm::xray::XRayRecord::FuncId

The function ID for the record, if this is a function call record.

Definition at line 84 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ PId

uint32_t llvm::xray::XRayRecord::PId

The process ID for the currently running process.

Definition at line 93 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ RecordType

uint16_t llvm::xray::XRayRecord::RecordType

RecordType values are used as "sub-types" which have meaning in the context of the Type below.

For function call and custom event records, the RecordType is always 0, while for typed events we store the type in the RecordType field.

Definition at line 75 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ TId

uint32_t llvm::xray::XRayRecord::TId

The thread ID for the currently running thread.

Definition at line 90 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().

◆ TSC

uint64_t llvm::xray::XRayRecord::TSC

Get the full 8 bytes of the TSC when we get the log record.

Definition at line 87 of file XRayRecord.h.

Referenced by llvm::xray::loadTrace(), and llvm::xray::TraceExpander::visit().

◆ Type

RecordTypes llvm::xray::XRayRecord::Type

Identifies the type of record.

Definition at line 81 of file XRayRecord.h.

Referenced by llvm::xray::TraceExpander::visit().


The documentation for this struct was generated from the following file: