LLVM 20.0.0git
|
#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< IndexedAllocationInfo > | AllocSites |
llvm::SmallVector< CallStackId > | CallSiteIds |
|
inline |
|
static |
Definition at line 220 of file MemProf.cpp.
References llvm::memprof::deserializeV2(), llvm::memprof::deserializeV3(), llvm_unreachable, Ptr, llvm::Version, llvm::memprof::Version2, and llvm::memprof::Version3.
|
static |
Definition at line 251 of file MemProf.cpp.
References llvm::sampleprof::FunctionSamples::getCanonicalFnName(), and llvm::GlobalValue::getGUID().
Referenced by llvm::memprof::extractCallsFromIR().
|
inline |
Definition at line 406 of file MemProf.h.
References llvm::SmallVectorImpl< T >::append(), and Other.
|
inline |
void llvm::memprof::IndexedMemProfRecord::serialize | ( | const MemProfSchema & | Schema, |
raw_ostream & | OS, | ||
IndexedVersion | Version, | ||
llvm::DenseMap< CallStackId, LinearCallStackId > * | MemProfCallStackIndexes = nullptr |
||
) | const |
Definition at line 137 of file MemProf.cpp.
References llvm_unreachable, OS, llvm::memprof::serializeV2(), llvm::memprof::serializeV3(), llvm::Version, llvm::memprof::Version2, and llvm::memprof::Version3.
size_t llvm::memprof::IndexedMemProfRecord::serializedSize | ( | const MemProfSchema & | Schema, |
IndexedVersion | Version | ||
) | const |
Definition at line 85 of file MemProf.cpp.
References llvm_unreachable, llvm::memprof::serializedSizeV2(), llvm::memprof::serializedSizeV3(), llvm::Version, llvm::memprof::Version2, and llvm::memprof::Version3.
MemProfRecord llvm::memprof::IndexedMemProfRecord::toMemProfRecord | ( | llvm::function_ref< std::vector< Frame >(const CallStackId)> | Callback | ) | const |
Definition at line 232 of file MemProf.cpp.
References AllocSites, CallSiteIds, llvm::memprof::AllocationInfo::CallStack, and llvm::memprof::AllocationInfo::Info.
Referenced by getMemProfRecordV2(), getMemProfRecordV3(), and llvm::memprof::MemProfReader::readNextRecord().
llvm::SmallVector<IndexedAllocationInfo> llvm::memprof::IndexedMemProfRecord::AllocSites |
Definition at line 396 of file MemProf.h.
Referenced by llvm::memprof::YAMLMemProfReader::parse(), and toMemProfRecord().
llvm::SmallVector<CallStackId> llvm::memprof::IndexedMemProfRecord::CallSiteIds |
Definition at line 402 of file MemProf.h.
Referenced by llvm::memprof::YAMLMemProfReader::parse(), and toMemProfRecord().