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 (IndexedVersion Version) const
 
bool operator== (const IndexedMemProfRecord &Other) const
 
void serialize (const MemProfSchema &Schema, raw_ostream &OS, IndexedVersion Version)
 
MemProfRecord toMemProfRecord (std::function< const llvm::SmallVector< Frame >(const CallStackId)> Callback) const
 

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 345 of file MemProf.h.

Member Function Documentation

◆ clear()

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

Definition at line 359 of file MemProf.h.

References AllocSites, and CallSites.

◆ deserialize()

IndexedMemProfRecord llvm::memprof::IndexedMemProfRecord::deserialize ( const MemProfSchema Schema,
const unsigned char Buffer,
IndexedVersion  Version 
)
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 364 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 373 of file MemProf.h.

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

◆ serialize()

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

◆ serializedSize()

size_t llvm::memprof::IndexedMemProfRecord::serializedSize ( IndexedVersion  Version) const

◆ toMemProfRecord()

MemProfRecord llvm::memprof::IndexedMemProfRecord::toMemProfRecord ( std::function< const llvm::SmallVector< Frame >(const CallStackId)>  Callback) const

Member Data Documentation

◆ AllocSites

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

Definition at line 348 of file MemProf.h.

Referenced by clear(), merge(), operator==(), and toMemProfRecord().

◆ CallSiteIds

llvm::SmallVector<CallStackId> llvm::memprof::IndexedMemProfRecord::CallSiteIds

Definition at line 357 of file MemProf.h.

Referenced by operator==(), and toMemProfRecord().

◆ CallSites

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

Definition at line 354 of file MemProf.h.

Referenced by clear(), and merge().


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