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 197 of file MemProf.h.

Constructor & Destructor Documentation

◆ Frame() [1/2]

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

Definition at line 212 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 222 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 247 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 252 of file MemProf.h.

References getSymbolName(), and hasSymbolName().

Referenced by printYAML().

◆ hash()

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

Definition at line 307 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, and Seed.

◆ hasSymbolName()

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

Definition at line 245 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 243 of file MemProf.h.

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

◆ operator=()

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

Definition at line 232 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 225 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 295 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 257 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 289 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 200 of file MemProf.h.

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

◆ IsInlineFrame

bool llvm::memprof::Frame::IsInlineFrame

Definition at line 210 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 203 of file MemProf.h.

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


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