LLVM 20.0.0git
|
#include "llvm/ProfileData/MemProfReader.h"
Public Types | |
using | GuidMemProfRecordPair = std::pair< GlobalValue::GUID, MemProfRecord > |
using | Iterator = InstrProfIterator< GuidMemProfRecordPair, MemProfReader > |
Public Member Functions | |
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) | |
Protected Member Functions | |
const Frame & | idToFrame (const FrameId Id) const |
Protected Attributes | |
IndexedMemProfData | MemProfData |
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord >::iterator | Iter |
Definition at line 36 of file MemProfReader.h.
using llvm::memprof::MemProfReader::GuidMemProfRecordPair = std::pair<GlobalValue::GUID, MemProfRecord> |
Definition at line 41 of file MemProfReader.h.
using llvm::memprof::MemProfReader::Iterator = InstrProfIterator<GuidMemProfRecordPair, MemProfReader> |
Definition at line 42 of file MemProfReader.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 86 of file MemProfReader.h.
|
inline |
Definition at line 44 of file MemProfReader.h.
References Iter, MemProfData, and llvm::memprof::IndexedMemProfData::Records.
|
inline |
Definition at line 43 of file MemProfReader.h.
|
inline |
Definition at line 39 of file MemProfReader.h.
References llvm::MemProf.
Definition at line 91 of file MemProfReader.h.
References assert(), llvm::memprof::IndexedMemProfData::Frames, and MemProfData.
Referenced by llvm::memprof::RawMemProfReader::readNextRecord(), and readNextRecord().
|
inlinevirtual |
Reimplemented in llvm::memprof::RawMemProfReader.
Definition at line 54 of file MemProfReader.h.
References llvm::memprof::IndexedMemProfData::CallStacks, llvm::empty_raw_profile, llvm::eof, llvm::hash_mismatch, idToFrame(), Iter, MemProfData, llvm::memprof::IndexedMemProfData::Records, llvm::Error::success(), and llvm::memprof::IndexedMemProfRecord::toMemProfRecord().
Referenced by llvm::memprof::RawMemProfReader::readNextRecord().
|
inline |
Definition at line 51 of file MemProfReader.h.
References MemProfData.
|
protected |
Definition at line 99 of file MemProfReader.h.
Referenced by begin(), llvm::memprof::RawMemProfReader::readNextRecord(), and readNextRecord().
|
protected |
Definition at line 97 of file MemProfReader.h.
Referenced by begin(), idToFrame(), llvm::memprof::YAMLMemProfReader::parse(), llvm::memprof::RawMemProfReader::printYAML(), readNextRecord(), and takeMemProfData().