LLVM  10.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | Friends | List of all members
llvm::xray::MetadataRecord Class Reference

#include "llvm/XRay/FDRRecords.h"

Inheritance diagram for llvm::xray::MetadataRecord:
Inheritance graph
[legend]
Collaboration diagram for llvm::xray::MetadataRecord:
Collaboration graph
[legend]

Public Types

enum  MetadataType : unsigned {
  MetadataType::Unknown, MetadataType::BufferExtents, MetadataType::WallClockTime, MetadataType::NewCPUId,
  MetadataType::TSCWrap, MetadataType::CustomEvent, MetadataType::CallArg, MetadataType::PIDEntry,
  MetadataType::NewBuffer, MetadataType::EndOfBuffer, MetadataType::TypedEvent
}
 
- Public Types inherited from llvm::xray::Record
enum  RecordKind {
  RecordKind::RK_Metadata, RecordKind::RK_Metadata_BufferExtents, RecordKind::RK_Metadata_WallClockTime, RecordKind::RK_Metadata_NewCPUId,
  RecordKind::RK_Metadata_TSCWrap, RecordKind::RK_Metadata_CustomEvent, RecordKind::RK_Metadata_CustomEventV5, RecordKind::RK_Metadata_CallArg,
  RecordKind::RK_Metadata_PIDEntry, RecordKind::RK_Metadata_NewBuffer, RecordKind::RK_Metadata_EndOfBuffer, RecordKind::RK_Metadata_TypedEvent,
  RecordKind::RK_Metadata_LastMetadata, RecordKind::RK_Function
}
 

Public Member Functions

 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::Record
static StringRef kindToString (RecordKind K)
 

Static Protected Attributes

static constexpr int kMetadataBodySize = 15
 

Friends

class RecordInitializer
 

Detailed Description

Definition at line 71 of file FDRRecords.h.

Member Enumeration Documentation

◆ MetadataType

Enumerator
Unknown 
BufferExtents 
WallClockTime 
NewCPUId 
TSCWrap 
CustomEvent 
CallArg 
PIDEntry 
NewBuffer 
EndOfBuffer 
TypedEvent 

Definition at line 73 of file FDRRecords.h.

Constructor & Destructor Documentation

◆ MetadataRecord()

llvm::xray::MetadataRecord::MetadataRecord ( RecordKind  T,
MetadataType  M 
)
inlineexplicit

Definition at line 95 of file FDRRecords.h.

◆ ~MetadataRecord()

virtual llvm::xray::MetadataRecord::~MetadataRecord ( )
virtualdefault

Member Function Documentation

◆ classof()

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

◆ metadataType()

MetadataType llvm::xray::MetadataRecord::metadataType ( ) const
inline

Definition at line 102 of file FDRRecords.h.

Friends And Related Function Documentation

◆ RecordInitializer

friend class RecordInitializer
friend

Definition at line 89 of file FDRRecords.h.

Member Data Documentation

◆ kMetadataBodySize

constexpr int llvm::xray::MetadataRecord::kMetadataBodySize = 15
staticprotected

Definition at line 88 of file FDRRecords.h.

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


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