LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::memprof::Frame Struct Reference

#include "llvm/ProfileData/MemProf.h"

Public Member Functions

 Frame (const Frame &Other)
 
 Frame (GlobalValue::GUID Hash, uint32_t Off, uint32_t Col, bool Inline)
 
bool operator== (const Frame &Other) const
 
Frameoperator= (const Frame &Other)
 
bool operator!= (const Frame &Other) const
 
bool hasSymbolName () const
 
StringRef getSymbolName () const
 
std::string getSymbolNameOr (StringRef Alt) const
 
void serialize (raw_ostream &OS) const
 
void printYAML (raw_ostream &OS) const
 
FrameId hash () const
 

Static Public Member Functions

static Frame deserialize (const unsigned char *Ptr)
 
static constexpr size_t serializedSize ()
 

Public Attributes

GlobalValue::GUID Function
 
std::unique_ptr< std::string > SymbolName
 
uint32_t LineOffset
 
uint32_t Column
 
bool IsInlineFrame
 

Detailed Description

Definition at line 204 of file MemProf.h.

Constructor & Destructor Documentation

◆ Frame() [1/2]

llvm::memprof::Frame::Frame ( const Frame Other)
inline

Definition at line 219 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, llvm::Other, and SymbolName.

◆ Frame() [2/2]

llvm::memprof::Frame::Frame ( GlobalValue::GUID  Hash,
uint32_t  Off,
uint32_t  Col,
bool  Inline 
)
inline

Definition at line 229 of file MemProf.h.

Member Function Documentation

◆ deserialize()

static Frame llvm::memprof::Frame::deserialize ( const unsigned char Ptr)
inlinestatic

◆ getSymbolName()

StringRef llvm::memprof::Frame::getSymbolName ( ) const
inline

Definition at line 254 of file MemProf.h.

References assert(), hasSymbolName(), and SymbolName.

Referenced by getSymbolNameOr().

◆ getSymbolNameOr()

std::string llvm::memprof::Frame::getSymbolNameOr ( StringRef  Alt) const
inline

Definition at line 259 of file MemProf.h.

References getSymbolName(), and hasSymbolName().

Referenced by printYAML().

◆ hash()

FrameId llvm::memprof::Frame::hash ( ) const
inline

Definition at line 314 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, and Seed.

◆ hasSymbolName()

bool llvm::memprof::Frame::hasSymbolName ( ) const
inline

Definition at line 252 of file MemProf.h.

References SymbolName.

Referenced by getSymbolName(), and getSymbolNameOr().

◆ operator!=()

bool llvm::memprof::Frame::operator!= ( const Frame Other) const
inline

Definition at line 250 of file MemProf.h.

References operator==(), and llvm::Other.

◆ operator=()

Frame & llvm::memprof::Frame::operator= ( const Frame Other)
inline

Definition at line 239 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, llvm::Other, and SymbolName.

◆ operator==()

bool llvm::memprof::Frame::operator== ( const Frame Other) const
inline

Definition at line 232 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, and llvm::Other.

Referenced by operator!=().

◆ printYAML()

void llvm::memprof::Frame::printYAML ( raw_ostream OS) const
inline

Definition at line 302 of file MemProf.h.

References Column, getSymbolNameOr(), IsInlineFrame, LineOffset, and OS.

◆ serialize()

void llvm::memprof::Frame::serialize ( raw_ostream OS) const
inline

Definition at line 264 of file MemProf.h.

References Column, Function, IsInlineFrame, LineOffset, llvm::little, and OS.

◆ serializedSize()

static constexpr size_t llvm::memprof::Frame::serializedSize ( )
inlinestaticconstexpr

Definition at line 296 of file MemProf.h.

References Column, Function, IsInlineFrame, and LineOffset.

Referenced by llvm::memprof::LinearFrameIdConverter::operator()().

Member Data Documentation

◆ Column

uint32_t llvm::memprof::Frame::Column

◆ Function

GlobalValue::GUID llvm::memprof::Frame::Function

Definition at line 207 of file MemProf.h.

Referenced by computeStackId(), serialize(), and serializedSize().

◆ IsInlineFrame

bool llvm::memprof::Frame::IsInlineFrame

Definition at line 217 of file MemProf.h.

Referenced by Frame(), hash(), operator=(), operator==(), printYAML(), serialize(), and serializedSize().

◆ LineOffset

uint32_t llvm::memprof::Frame::LineOffset

◆ SymbolName

std::unique_ptr<std::string> llvm::memprof::Frame::SymbolName

Definition at line 210 of file MemProf.h.

Referenced by Frame(), getSymbolName(), hasSymbolName(), and operator=().


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