LLVM 20.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 MemProfSchema &Schema, IndexedVersion Version) const
 
bool operator== (const IndexedMemProfRecord &Other) const
 
void serialize (const MemProfSchema &Schema, raw_ostream &OS, IndexedVersion Version, llvm::DenseMap< CallStackId, LinearCallStackId > *MemProfCallStackIndexes=nullptr) const
 
MemProfRecord toMemProfRecord (llvm::function_ref< std::vector< 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 408 of file MemProf.h.

Member Function Documentation

◆ clear()

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

Definition at line 422 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 427 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 437 of file MemProf.h.

References AllocSites, CallSiteIds, and llvm::Other.

◆ serialize()

void llvm::memprof::IndexedMemProfRecord::serialize ( const MemProfSchema Schema,
raw_ostream OS,
IndexedVersion  Version,
llvm::DenseMap< CallStackId, LinearCallStackId > *  MemProfCallStackIndexes = nullptr 
) const

◆ serializedSize()

size_t llvm::memprof::IndexedMemProfRecord::serializedSize ( const MemProfSchema Schema,
IndexedVersion  Version 
) const

◆ toMemProfRecord()

MemProfRecord llvm::memprof::IndexedMemProfRecord::toMemProfRecord ( llvm::function_ref< std::vector< Frame >(const CallStackId)>  Callback) const

Member Data Documentation

◆ AllocSites

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

Definition at line 411 of file MemProf.h.

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

◆ CallSiteIds

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

Definition at line 420 of file MemProf.h.

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

◆ CallSites

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

Definition at line 417 of file MemProf.h.

Referenced by clear(), and merge().


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