LLVM  16.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::memprof::IndexedMemProfRecord Struct Reference

#include "llvm/ProfileData/MemProf.h"

Collaboration diagram for llvm::memprof::IndexedMemProfRecord:
Collaboration graph
[legend]

Public Member Functions

void clear ()
 
void merge (const IndexedMemProfRecord &Other)
 
size_t serializedSize () const
 
bool operator== (const IndexedMemProfRecord &Other) const
 
void serialize (const MemProfSchema &Schema, raw_ostream &OS)
 

Static Public Member Functions

static IndexedMemProfRecord deserialize (const MemProfSchema &Schema, const unsigned char *Buffer)
 
static GlobalValue::GUID getGUID (const StringRef FunctionName)
 

Public Attributes

llvm::SmallVector< IndexedAllocationInfoAllocSites
 
llvm::SmallVector< llvm::SmallVector< FrameId > > CallSites
 

Detailed Description

Definition at line 324 of file MemProf.h.

Member Function Documentation

◆ clear()

void llvm::memprof::IndexedMemProfRecord::clear ( )
inline

Definition at line 335 of file MemProf.h.

References llvm::SmallVectorImpl< T >::clear().

◆ deserialize()

IndexedMemProfRecord llvm::memprof::IndexedMemProfRecord::deserialize ( const MemProfSchema Schema,
const unsigned char *  Buffer 
)
static

Definition at line 35 of file MemProf.cpp.

References I, Ptr, and support().

Referenced by llvm::memprof::RecordLookupTrait::ReadData().

◆ getGUID()

GlobalValue::GUID llvm::memprof::IndexedMemProfRecord::getGUID ( const StringRef  FunctionName)
static

◆ merge()

void llvm::memprof::IndexedMemProfRecord::merge ( const IndexedMemProfRecord Other)
inline

Definition at line 340 of file MemProf.h.

References llvm::SmallVectorImpl< T >::append(), and Other.

Referenced by llvm::InstrProfWriter::addMemProfRecord().

◆ operator==()

bool llvm::memprof::IndexedMemProfRecord::operator== ( const IndexedMemProfRecord Other) const
inline

Definition at line 362 of file MemProf.h.

References I, and Other.

◆ serialize()

void llvm::memprof::IndexedMemProfRecord::serialize ( const MemProfSchema Schema,
raw_ostream OS 
)

◆ serializedSize()

size_t llvm::memprof::IndexedMemProfRecord::serializedSize ( ) const
inline

Definition at line 347 of file MemProf.h.

References N.

Referenced by llvm::memprof::RecordWriterTrait::EmitKeyDataLength().

Member Data Documentation

◆ AllocSites

llvm::SmallVector<IndexedAllocationInfo> llvm::memprof::IndexedMemProfRecord::AllocSites

Definition at line 327 of file MemProf.h.

Referenced by serialize().

◆ CallSites

llvm::SmallVector<llvm::SmallVector<FrameId> > llvm::memprof::IndexedMemProfRecord::CallSites

Definition at line 333 of file MemProf.h.

Referenced by serialize().


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