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

#include "llvm/ProfileData/MemProfReader.h"

Inheritance diagram for llvm::memprof::MemProfReader:
Inheritance graph
[legend]

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 FrameidToFrame (const FrameId Id) const
 

Protected Attributes

IndexedMemProfData MemProfData
 
llvm::MapVector< GlobalValue::GUID, IndexedMemProfRecord >::iterator Iter
 

Detailed Description

Definition at line 36 of file MemProfReader.h.

Member Typedef Documentation

◆ GuidMemProfRecordPair

Definition at line 41 of file MemProfReader.h.

◆ Iterator

Definition at line 42 of file MemProfReader.h.

Constructor & Destructor Documentation

◆ MemProfReader() [1/2]

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

◆ ~MemProfReader()

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

◆ MemProfReader() [2/2]

llvm::memprof::MemProfReader::MemProfReader ( IndexedMemProfData &&  MemProfData)
inline

Definition at line 86 of file MemProfReader.h.

Member Function Documentation

◆ begin()

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

Definition at line 44 of file MemProfReader.h.

References Iter, MemProfData, and llvm::memprof::IndexedMemProfData::Records.

◆ end()

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

Definition at line 43 of file MemProfReader.h.

◆ getProfileKind()

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

Definition at line 39 of file MemProfReader.h.

References llvm::MemProf.

◆ idToFrame()

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

◆ readNextRecord()

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

◆ takeMemProfData()

IndexedMemProfData llvm::memprof::MemProfReader::takeMemProfData ( )
inline

Definition at line 51 of file MemProfReader.h.

References MemProfData.

Member Data Documentation

◆ Iter

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

◆ MemProfData

IndexedMemProfData llvm::memprof::MemProfReader::MemProfData
protected

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