LLVM 19.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"

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 336 of file MemProf.h.

Member Function Documentation

◆ clear()

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

Definition at line 347 of file MemProf.h.

References AllocSites, and CallSites.

◆ deserialize()

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

◆ getGUID()

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

◆ merge()

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

Definition at line 352 of file MemProf.h.

References AllocSites, CallSites, and llvm::Other.

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

◆ operator==()

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

Definition at line 374 of file MemProf.h.

References AllocSites, CallSites, I, and llvm::Other.

◆ serialize()

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

Definition at line 14 of file MemProf.cpp.

References AllocSites, CallSites, llvm::little, N, and OS.

◆ serializedSize()

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

Definition at line 359 of file MemProf.h.

References AllocSites, CallSites, and N.

Member Data Documentation

◆ AllocSites

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

Definition at line 339 of file MemProf.h.

Referenced by clear(), merge(), operator==(), serialize(), and serializedSize().

◆ CallSites

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

Definition at line 345 of file MemProf.h.

Referenced by clear(), merge(), operator==(), serialize(), and serializedSize().


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