LLVM 20.0.0git
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"

Public Attributes

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

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 69 of file XRayRecord.h.

Member Data Documentation

◆ CallArgs

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

The function call arguments.

Definition at line 95 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 77 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 98 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 83 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 92 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 74 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 89 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 86 of file XRayRecord.h.

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

◆ Type

RecordTypes llvm::xray::XRayRecord::Type

Identifies the type of record.

Definition at line 80 of file XRayRecord.h.

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


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