LLVM 20.0.0git
|
#include "llvm/ProfileData/MemProfReader.h"
Public Member Functions | |
YAMLMemProfReader ()=default | |
void | parse (StringRef YAMLData) |
Public Member Functions inherited from llvm::memprof::MemProfReader | |
InstrProfKind | getProfileKind () const |
Iterator | end () |
Iterator | begin () |
IndexedMemProfData | takeMemProfData () |
virtual Error | readNextRecord (GuidMemProfRecordPair &GuidRecord, std::function< const Frame(const FrameId)> Callback=nullptr) |
MemProfReader ()=default | |
virtual | ~MemProfReader ()=default |
MemProfReader (IndexedMemProfData &&MemProfData) | |
Static Public Member Functions | |
static bool | hasFormat (const MemoryBuffer &DataBuffer) |
static bool | hasFormat (const StringRef Path) |
static Expected< std::unique_ptr< YAMLMemProfReader > > | create (const Twine &Path) |
static Expected< std::unique_ptr< YAMLMemProfReader > > | create (std::unique_ptr< MemoryBuffer > Buffer) |
Additional Inherited Members | |
Public Types inherited from llvm::memprof::MemProfReader | |
using | GuidMemProfRecordPair = std::pair< GlobalValue::GUID, MemProfRecord > |
using | Iterator = InstrProfIterator< GuidMemProfRecordPair, MemProfReader > |
Protected Member Functions inherited from llvm::memprof::MemProfReader | |
const Frame & | idToFrame (const FrameId Id) const |
Protected Attributes inherited from llvm::memprof::MemProfReader | |
IndexedMemProfData | MemProfData |
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord >::iterator | Iter |
Definition at line 213 of file MemProfReader.h.
|
default |
|
static |
Definition at line 755 of file MemProfReader.cpp.
References create(), llvm::errorCodeToError(), and llvm::MemoryBuffer::getFileOrSTDIN().
Referenced by create().
|
static |
Definition at line 765 of file MemProfReader.cpp.
|
static |
Definition at line 780 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::starts_with().
Referenced by hasFormat().
Definition at line 771 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getFileOrSTDIN(), and hasFormat().
void llvm::memprof::YAMLMemProfReader::parse | ( | StringRef | YAMLData | ) |
Definition at line 784 of file MemProfReader.cpp.
References llvm::memprof::IndexedMemProfData::addCallStack(), llvm::memprof::IndexedMemProfData::addFrame(), llvm::memprof::IndexedMemProfRecord::AllocSites, llvm::memprof::IndexedMemProfRecord::CallSiteIds, llvm::memprof::AllocationInfo::CallStack, F, llvm::memprof::AllMemProfData::HeapProfileRecords, llvm::memprof::AllocationInfo::Info, llvm::memprof::MemProfReader::MemProfData, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::memprof::IndexedMemProfData::Records, and llvm::SmallVectorImpl< T >::reserve().