LLVM 20.0.0git
|
#include "llvm/ProfileData/MemProfReader.h"
Public Member Functions | |
RawMemProfReader (const RawMemProfReader &)=delete | |
RawMemProfReader & | operator= (const RawMemProfReader &)=delete |
virtual | ~RawMemProfReader () override |
void | printYAML (raw_ostream &OS) |
Error | readNextRecord (GuidMemProfRecordPair &GuidRecord, std::function< const Frame(const FrameId)> Callback) override |
RawMemProfReader (std::unique_ptr< llvm::symbolize::SymbolizableModule > Sym, llvm::SmallVectorImpl< SegmentEntry > &Seg, llvm::MapVector< uint64_t, MemInfoBlock > &Prof, CallStackMap &SM, bool KeepName=false) | |
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< RawMemProfReader > > | create (const Twine &Path, StringRef ProfiledBinary, bool KeepName=false) |
static Expected< std::unique_ptr< RawMemProfReader > > | create (std::unique_ptr< MemoryBuffer > Buffer, StringRef ProfiledBinary, bool KeepName=false) |
static std::vector< std::string > | peekBuildIds (MemoryBuffer *DataBuffer) |
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 108 of file MemProfReader.h.
|
delete |
|
overridevirtual |
Definition at line 280 of file MemProfReader.cpp.
References _.
|
inline |
Definition at line 141 of file MemProfReader.h.
References E, llvm::report_fatal_error(), and Sym.
|
static |
Definition at line 234 of file MemProfReader.cpp.
References create(), llvm::errorCodeToError(), and llvm::MemoryBuffer::getFileOrSTDIN().
Referenced by create().
|
static |
Definition at line 245 of file MemProfReader.cpp.
References llvm::object::createBinary(), E, llvm::StringRef::empty(), llvm::inconvertibleErrorCode(), and peekBuildIds().
|
static |
Definition at line 297 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getBufferSize(), and llvm::MemoryBuffer::getBufferStart().
Referenced by hasFormat().
Definition at line 288 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getFileOrSTDIN(), and hasFormat().
|
delete |
|
static |
Definition at line 612 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getBufferStart(), llvm::SetVector< T, Vector, Set, N >::insert(), and llvm::SetVector< T, Vector, Set, N >::takeVector().
Referenced by create().
void llvm::memprof::RawMemProfReader::printYAML | ( | raw_ostream & | OS | ) |
Definition at line 306 of file MemProfReader.cpp.
References llvm::memprof::MemProfReader::MemProfData, OS, llvm::memprof::IndexedMemProfData::Records, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), and llvm::SmallVectorBase< Size_T >::size().
|
overridevirtual |
Reimplemented from llvm::memprof::MemProfReader.
Definition at line 736 of file MemProfReader.cpp.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), F, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::memprof::MemProfReader::idToFrame(), llvm::memprof::MemProfReader::Iter, and llvm::memprof::MemProfReader::readNextRecord().