LLVM 18.0.0git
|
#include "llvm/ProfileData/MemProf.h"
Public Member Functions | |
void | clear () |
void | merge (const IndexedMemProfRecord &Other) |
size_t | serializedSize () const |
bool | operator== (const IndexedMemProfRecord &Other) const |
void | serialize (const MemProfSchema &Schema, raw_ostream &OS) |
Static Public Member Functions | |
static IndexedMemProfRecord | deserialize (const MemProfSchema &Schema, const unsigned char *Buffer) |
static GlobalValue::GUID | getGUID (const StringRef FunctionName) |
Public Attributes | |
llvm::SmallVector< IndexedAllocationInfo > | AllocSites |
llvm::SmallVector< llvm::SmallVector< FrameId > > | CallSites |
|
inline |
Definition at line 335 of file MemProf.h.
References AllocSites, and CallSites.
|
static |
Definition at line 36 of file MemProf.cpp.
References I, Ptr, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and llvm::memprof::PortableMemInfoBlock::serializedSize().
Referenced by llvm::memprof::RecordLookupTrait::ReadData().
|
static |
Definition at line 74 of file MemProf.cpp.
References llvm::sampleprof::FunctionSamples::getCanonicalFnName(), and llvm::GlobalValue::getGUID().
|
inline |
Definition at line 340 of file MemProf.h.
References AllocSites, CallSites, and llvm::Other.
Referenced by llvm::InstrProfWriter::addMemProfRecord().
|
inline |
Definition at line 362 of file MemProf.h.
References AllocSites, CallSites, I, and llvm::Other.
void llvm::memprof::IndexedMemProfRecord::serialize | ( | const MemProfSchema & | Schema, |
raw_ostream & | OS | ||
) |
Definition at line 12 of file MemProf.cpp.
References AllocSites, CallSites, N, and OS.
|
inline |
Definition at line 347 of file MemProf.h.
References AllocSites, CallSites, and N.
llvm::SmallVector<IndexedAllocationInfo> llvm::memprof::IndexedMemProfRecord::AllocSites |
Definition at line 327 of file MemProf.h.
Referenced by clear(), merge(), operator==(), serialize(), and serializedSize().
llvm::SmallVector<llvm::SmallVector<FrameId> > llvm::memprof::IndexedMemProfRecord::CallSites |
Definition at line 333 of file MemProf.h.
Referenced by clear(), merge(), operator==(), serialize(), and serializedSize().