LLVM 22.0.0git
llvm::memprof::IndexedMemProfRecord Struct Reference

#include "llvm/ProfileData/MemProf.h"

Public Member Functions

void clear ()
void merge (const IndexedMemProfRecord &Other)
LLVM_ABI size_t serializedSize (const MemProfSchema &Schema, IndexedVersion Version) const
bool operator== (const IndexedMemProfRecord &Other) const
LLVM_ABI void serialize (const MemProfSchema &Schema, raw_ostream &OS, IndexedVersion Version, llvm::DenseMap< CallStackId, LinearCallStackId > *MemProfCallStackIndexes=nullptr) const
LLVM_ABI MemProfRecord toMemProfRecord (llvm::function_ref< std::vector< Frame >(const CallStackId)> Callback) const

Static Public Member Functions

static LLVM_ABI IndexedMemProfRecord deserialize (const MemProfSchema &Schema, const unsigned char *Buffer, IndexedVersion Version)

Public Attributes

llvm::SmallVector< IndexedAllocationInfoAllocSites
llvm::SmallVector< IndexedCallSiteInfoCallSites

Detailed Description

Definition at line 438 of file MemProf.h.

Member Function Documentation

◆ clear()

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

Definition at line 449 of file MemProf.h.

◆ deserialize()

◆ merge()

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

Definition at line 451 of file MemProf.h.

References AllocSites, and llvm::Other.

◆ operator==()

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

Definition at line 460 of file MemProf.h.

References AllocSites, CallSites, 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()

◆ toMemProfRecord()

Member Data Documentation

◆ AllocSites

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

◆ CallSites

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

Definition at line 447 of file MemProf.h.

Referenced by operator==(), llvm::memprof::YAMLMemProfReader::parse(), and toMemProfRecord().


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