LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::xray::TypedEventRecord Class Reference

#include "llvm/XRay/FDRRecords.h"

Inheritance diagram for llvm::xray::TypedEventRecord:
Inheritance graph
[legend]

Public Member Functions

 TypedEventRecord ()
 
 TypedEventRecord (int32_t S, int32_t D, uint16_t E, std::string P)
 
int32_t size () const
 
int32_t delta () const
 
uint16_t eventType () const
 
StringRef data () const
 
Error apply (RecordVisitor &V) override
 
- Public Member Functions inherited from llvm::xray::MetadataRecord
 MetadataRecord (RecordKind T, MetadataType M)
 
MetadataType metadataType () const
 
virtual ~MetadataRecord ()=default
 
- Public Member Functions inherited from llvm::xray::Record
 Record (const Record &)=delete
 
 Record (Record &&)=delete
 
Recordoperator= (const Record &)=delete
 
Recordoperator= (Record &&)=delete
 
 Record (RecordKind T)
 
RecordKind getRecordType () const
 
virtual Error apply (RecordVisitor &V)=0
 
virtual ~Record ()=default
 

Static Public Member Functions

static bool classof (const Record *R)
 
- Static Public Member Functions inherited from llvm::xray::MetadataRecord
static bool classof (const Record *R)
 
- Static Public Member Functions inherited from llvm::xray::Record
static StringRef kindToString (RecordKind K)
 

Friends

class RecordInitializer
 

Additional Inherited Members

- Public Types inherited from llvm::xray::MetadataRecord
enum class  MetadataType : unsigned {
  Unknown , BufferExtents , WallClockTime , NewCPUId ,
  TSCWrap , CustomEvent , CallArg , PIDEntry ,
  NewBuffer , EndOfBuffer , TypedEvent
}
 
- Public Types inherited from llvm::xray::Record
enum class  RecordKind {
  RK_Metadata , RK_Metadata_BufferExtents , RK_Metadata_WallClockTime , RK_Metadata_NewCPUId ,
  RK_Metadata_TSCWrap , RK_Metadata_CustomEvent , RK_Metadata_CustomEventV5 , RK_Metadata_CallArg ,
  RK_Metadata_PIDEntry , RK_Metadata_NewBuffer , RK_Metadata_EndOfBuffer , RK_Metadata_TypedEvent ,
  RK_Metadata_LastMetadata , RK_Function
}
 
- Static Protected Attributes inherited from llvm::xray::MetadataRecord
static constexpr int kMetadataBodySize = 15
 

Detailed Description

Definition at line 262 of file FDRRecords.h.

Constructor & Destructor Documentation

◆ TypedEventRecord() [1/2]

llvm::xray::TypedEventRecord::TypedEventRecord ( )
inline

Definition at line 270 of file FDRRecords.h.

◆ TypedEventRecord() [2/2]

llvm::xray::TypedEventRecord::TypedEventRecord ( int32_t  S,
int32_t  D,
uint16_t  E,
std::string  P 
)
inlineexplicit

Definition at line 274 of file FDRRecords.h.

Member Function Documentation

◆ apply()

Error llvm::xray::TypedEventRecord::apply ( RecordVisitor V)
overridevirtual

Implements llvm::xray::Record.

Definition at line 29 of file FDRRecords.cpp.

◆ classof()

static bool llvm::xray::TypedEventRecord::classof ( const Record R)
inlinestatic

Definition at line 286 of file FDRRecords.h.

References llvm::xray::Record::RK_Metadata_TypedEvent.

◆ data()

StringRef llvm::xray::TypedEventRecord::data ( ) const
inline

Definition at line 282 of file FDRRecords.h.

◆ delta()

int32_t llvm::xray::TypedEventRecord::delta ( ) const
inline

Definition at line 280 of file FDRRecords.h.

◆ eventType()

uint16_t llvm::xray::TypedEventRecord::eventType ( ) const
inline

Definition at line 281 of file FDRRecords.h.

◆ size()

int32_t llvm::xray::TypedEventRecord::size ( ) const
inline

Definition at line 279 of file FDRRecords.h.

References Size.

Friends And Related Function Documentation

◆ RecordInitializer

friend class RecordInitializer
friend

Definition at line 267 of file FDRRecords.h.


The documentation for this class was generated from the following files: