LLVM 18.0.0git
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::memprof::MemProfReader Class Reference

#include "llvm/ProfileData/RawMemProfReader.h"

Inheritance diagram for llvm::memprof::MemProfReader:
Inheritance graph

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::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)

Protected Member Functions

const FrameidToFrame (const FrameId Id) const

Protected Attributes

llvm::DenseMap< FrameId, FrameIdToFrame
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecordFunctionProfileData
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord >::iterator Iter

Detailed Description

Definition at line 36 of file RawMemProfReader.h.

Member Typedef Documentation

◆ GuidMemProfRecordPair

Definition at line 41 of file RawMemProfReader.h.

◆ Iterator

Definition at line 42 of file RawMemProfReader.h.

Constructor & Destructor Documentation

◆ MemProfReader() [1/2]

llvm::memprof::MemProfReader::MemProfReader ( )

◆ ~MemProfReader()

virtual llvm::memprof::MemProfReader::~MemProfReader ( )

◆ MemProfReader() [2/2]

llvm::memprof::MemProfReader::MemProfReader ( llvm::DenseMap< FrameId, Frame FrameIdMap,
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord ProfData 

Definition at line 85 of file RawMemProfReader.h.

Member Function Documentation

◆ begin()

Iterator llvm::memprof::MemProfReader::begin ( )

Definition at line 44 of file RawMemProfReader.h.

References FunctionProfileData, and Iter.

◆ end()

Iterator llvm::memprof::MemProfReader::end ( )

Definition at line 43 of file RawMemProfReader.h.

◆ getFrameMapping()

const llvm::DenseMap< FrameId, Frame > & llvm::memprof::MemProfReader::getFrameMapping ( ) const

Definition at line 50 of file RawMemProfReader.h.

References IdToFrame.

◆ getProfileData()

const llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord > & llvm::memprof::MemProfReader::getProfileData ( ) const

Definition at line 56 of file RawMemProfReader.h.

References FunctionProfileData.

◆ getProfileKind()

InstrProfKind llvm::memprof::MemProfReader::getProfileKind ( ) const

Definition at line 39 of file RawMemProfReader.h.

References llvm::MemProf.

◆ idToFrame()

const Frame & llvm::memprof::MemProfReader::idToFrame ( const FrameId  Id) const

Definition at line 93 of file RawMemProfReader.h.

References assert(), and IdToFrame.

Referenced by llvm::memprof::RawMemProfReader::readNextRecord(), and readNextRecord().

◆ readNextRecord()

virtual Error llvm::memprof::MemProfReader::readNextRecord ( GuidMemProfRecordPair GuidRecord,
std::function< const Frame(const FrameId)>  Callback = nullptr 

Member Data Documentation

◆ FunctionProfileData

llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> llvm::memprof::MemProfReader::FunctionProfileData

◆ IdToFrame

llvm::DenseMap<FrameId, Frame> llvm::memprof::MemProfReader::IdToFrame

Definition at line 99 of file RawMemProfReader.h.

Referenced by getFrameMapping(), and idToFrame().

◆ Iter

llvm::MapVector<GlobalValue::GUID,IndexedMemProfRecord>::iterator llvm::memprof::MemProfReader::Iter

The documentation for this class was generated from the following file: