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< llvm::SmallVector< FrameId > > | CallSites |
llvm::SmallVector< CallStackId > | CallSiteIds |
|
inline |
Definition at line 422 of file MemProf.h.
References AllocSites, and CallSites.
|
static |
Definition at line 326 of file MemProf.cpp.
References llvm::memprof::deserializeV0(), llvm::memprof::deserializeV2(), llvm::memprof::deserializeV3(), llvm_unreachable, Ptr, llvm::Version, llvm::memprof::Version0, llvm::memprof::Version1, llvm::memprof::Version2, and llvm::memprof::Version3.
Referenced by llvm::memprof::RecordLookupTrait::ReadData().
|
static |
Definition at line 360 of file MemProf.cpp.
References llvm::sampleprof::FunctionSamples::getCanonicalFnName(), and llvm::GlobalValue::getGUID().
|
inline |
Definition at line 427 of file MemProf.h.
References AllocSites, CallSites, and llvm::Other.
Referenced by llvm::InstrProfWriter::addMemProfRecord().
|
inline |
Definition at line 437 of file MemProf.h.
References AllocSites, CallSiteIds, and llvm::Other.
void llvm::memprof::IndexedMemProfRecord::serialize | ( | const MemProfSchema & | Schema, |
raw_ostream & | OS, | ||
IndexedVersion | Version, | ||
llvm::DenseMap< CallStackId, LinearCallStackId > * | MemProfCallStackIndexes = nullptr |
||
) | const |
Definition at line 195 of file MemProf.cpp.
References llvm_unreachable, OS, llvm::memprof::serializeV0(), llvm::memprof::serializeV2(), llvm::memprof::serializeV3(), llvm::Version, llvm::memprof::Version0, llvm::memprof::Version1, llvm::memprof::Version2, and llvm::memprof::Version3.
size_t llvm::memprof::IndexedMemProfRecord::serializedSize | ( | const MemProfSchema & | Schema, |
IndexedVersion | Version | ||
) | const |
Definition at line 117 of file MemProf.cpp.
References llvm_unreachable, llvm::memprof::serializedSizeV0(), llvm::memprof::serializedSizeV2(), llvm::memprof::serializedSizeV3(), llvm::Version, llvm::memprof::Version0, llvm::memprof::Version1, 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 341 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 411 of file MemProf.h.
Referenced by clear(), merge(), operator==(), and toMemProfRecord().
llvm::SmallVector<CallStackId> llvm::memprof::IndexedMemProfRecord::CallSiteIds |
Definition at line 420 of file MemProf.h.
Referenced by operator==(), and toMemProfRecord().
llvm::SmallVector<llvm::SmallVector<FrameId> > llvm::memprof::IndexedMemProfRecord::CallSites |