LLVM 20.0.0git
|
#include "llvm/ProfileData/MemProfReader.h"
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 | |
llvm::DenseMap< FrameId, Frame > | IdToFrame |
llvm::DenseMap< CallStackId, llvm::SmallVector< FrameId > > | CSIdToCallStack |
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > | FunctionProfileData |
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord >::iterator | Iter |
Definition at line 136 of file MemProfReader.h.
|
delete |
|
overridevirtual |
Definition at line 305 of file MemProfReader.cpp.
References _.
|
inline |
Definition at line 169 of file MemProfReader.h.
References E, llvm::report_fatal_error(), and Sym.
|
static |
Definition at line 259 of file MemProfReader.cpp.
References create(), llvm::errorCodeToError(), and llvm::MemoryBuffer::getFileOrSTDIN().
Referenced by create().
|
static |
Definition at line 270 of file MemProfReader.cpp.
References llvm::object::createBinary(), E, llvm::StringRef::empty(), llvm::inconvertibleErrorCode(), and peekBuildIds().
|
static |
Definition at line 322 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getBufferSize(), and llvm::MemoryBuffer::getBufferStart().
Referenced by hasFormat().
Definition at line 313 of file MemProfReader.cpp.
References llvm::MemoryBuffer::getFileOrSTDIN(), and hasFormat().
|
delete |
|
static |
Definition at line 649 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 331 of file MemProfReader.cpp.
References llvm::memprof::MemProfReader::FunctionProfileData, OS, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), and llvm::SmallVectorBase< Size_T >::size().
|
overridevirtual |
Reimplemented from llvm::memprof::MemProfReader.
Definition at line 773 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().