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 () |
const llvm::DenseMap< FrameId, Frame > & | getFrameMapping () const |
const llvm::DenseMap< CallStackId, llvm::SmallVector< FrameId > > & | getCallStacks () const |
const llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > & | getProfileData () const |
virtual Error | readNextRecord (GuidMemProfRecordPair &GuidRecord, std::function< const Frame(const FrameId)> Callback=nullptr) |
MemProfReader ()=default | |
virtual | ~MemProfReader ()=default |
MemProfReader (llvm::DenseMap< FrameId, Frame > FrameIdMap, llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > ProfData) | |
MemProfReader (llvm::DenseMap< FrameId, Frame > FrameIdMap, llvm::DenseMap< CallStackId, llvm::SmallVector< FrameId > > CSIdMap, llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > ProfData) | |
Protected Member Functions | |
const Frame & | idToFrame (const FrameId Id) const |
Protected Attributes | |
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 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 |
llvm::memprof::MemProfReader::MemProfReader | ( | llvm::DenseMap< FrameId, Frame > | FrameIdMap, |
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > | ProfData | ||
) |
Definition at line 236 of file MemProfReader.cpp.
References CSIdToCallStack, FunctionProfileData, and llvm::memprof::hashCallStack().
|
inline |
Definition at line 105 of file MemProfReader.h.
|
inline |
Definition at line 44 of file MemProfReader.h.
References FunctionProfileData, and Iter.
|
inline |
Definition at line 43 of file MemProfReader.h.
|
inline |
Definition at line 56 of file MemProfReader.h.
References CSIdToCallStack.
|
inline |
Definition at line 50 of file MemProfReader.h.
References IdToFrame.
|
inline |
Definition at line 62 of file MemProfReader.h.
References FunctionProfileData.
|
inline |
Definition at line 39 of file MemProfReader.h.
References llvm::MemProf.
Definition at line 114 of file MemProfReader.h.
References assert(), and IdToFrame.
Referenced by llvm::memprof::RawMemProfReader::readNextRecord(), and readNextRecord().
|
inlinevirtual |
Reimplemented in llvm::memprof::RawMemProfReader.
Definition at line 67 of file MemProfReader.h.
References CSIdToCallStack, llvm::empty_raw_profile, llvm::eof, FunctionProfileData, llvm::hash_mismatch, idToFrame(), Iter, llvm::Error::success(), and llvm::memprof::IndexedMemProfRecord::toMemProfRecord().
Referenced by llvm::memprof::RawMemProfReader::readNextRecord().
|
protected |
Definition at line 122 of file MemProfReader.h.
Referenced by getCallStacks(), MemProfReader(), and readNextRecord().
|
protected |
Definition at line 125 of file MemProfReader.h.
Referenced by begin(), getProfileData(), MemProfReader(), llvm::memprof::RawMemProfReader::printYAML(), and readNextRecord().
|
protected |
Definition at line 120 of file MemProfReader.h.
Referenced by getFrameMapping(), and idToFrame().
|
protected |
Definition at line 127 of file MemProfReader.h.
Referenced by begin(), llvm::memprof::RawMemProfReader::readNextRecord(), and readNextRecord().