LLVM: llvm::memprof::DataAccessProfData Class Reference (original) (raw)

Encapsulates the data access profile data and the methods to operate on it. More...

#include "[llvm/ProfileData/DataAccessProf.h](DataAccessProf%5F8h%5Fsource.html)"

Public Member Functions
DataAccessProfData ()
LLVM_ABI Error serialize (ProfOStream &OS) const
Serialize profile data to the output stream.
LLVM_ABI Error deserialize (const unsigned char *&Ptr)
Deserialize this class from the given buffer.
LLVM_ABI std::optional< DataAccessProfRecord > getProfileRecord (const SymbolHandleRef SymID) const
Returns a profile record for SymbolID, or std::nullopt if there isn't a record.
LLVM_ABI bool isKnownColdSymbol (const SymbolHandleRef SymID) const
Returns true if SymID is seen in profiled binaries and cold.
LLVM_ABI Error setDataAccessProfile (SymbolHandleRef SymbolID, uint64_t AccessCount)
Methods to set symbolized data access profile.
LLVM_ABI Error setDataAccessProfile (SymbolHandleRef SymbolID, uint64_t AccessCount, ArrayRef< SourceLocation > Locations)
Similar to the method above, for records with Locations representing the filename:line where this symbol shows up.
LLVM_ABI Error addKnownSymbolWithoutSamples (SymbolHandleRef SymbolID)
Add a symbol that's seen in the profiled binary without samples.
ArrayRef< StringToIndexMap::value_type > getStrToIndexMapRef () const
The following methods return array reference for various internal data structures.
ArrayRef< MapVector< SymbolHandleRef, internal::DataAccessProfRecordRef >::value_type > getRecords () const
ArrayRef< StringRef > getKnownColdSymbols () const
ArrayRef< uint64_t > getKnownColdHashes () const
bool empty () const

Encapsulates the data access profile data and the methods to operate on it.

This class provides profile look-up, serialization and deserialization.

Definition at line 129 of file DataAccessProf.h.

StringToIndexMap

llvm::memprof::DataAccessProfData::DataAccessProfData ( ) inline

addKnownSymbolWithoutSamples()

deserialize()

empty()

bool llvm::memprof::DataAccessProfData::empty ( ) const inlinenodiscard

getKnownColdHashes()

ArrayRef< uint64_t > llvm::memprof::DataAccessProfData::getKnownColdHashes ( ) const inline

getKnownColdSymbols()

ArrayRef< StringRef > llvm::memprof::DataAccessProfData::getKnownColdSymbols ( ) const inline

getProfileRecord()

getRecords()

getStrToIndexMapRef()

The following methods return array reference for various internal data structures.

Definition at line 174 of file DataAccessProf.h.

isKnownColdSymbol()

Returns true if SymID is seen in profiled binaries and cold.

Definition at line 56 of file DataAccessProf.cpp.

serialize()

setDataAccessProfile() [1/2]

setDataAccessProfile() [2/2]


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