LLVM 20.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 ()=default
 
 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
 

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 219 of file MemProf.h.

Constructor & Destructor Documentation

◆ Frame() [1/3]

llvm::memprof::Frame::Frame ( )
default

◆ Frame() [2/3]

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

Definition at line 235 of file MemProf.h.

References Other.

◆ Frame() [3/3]

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

Definition at line 245 of file MemProf.h.

Member Function Documentation

◆ deserialize()

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

Definition at line 297 of file MemProf.h.

References C, F, I, and Ptr.

◆ getSymbolName()

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

Definition at line 270 of file MemProf.h.

References assert().

◆ getSymbolNameOr()

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

Definition at line 275 of file MemProf.h.

References getSymbolName().

◆ hasSymbolName()

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

Definition at line 268 of file MemProf.h.

◆ operator!=()

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

Definition at line 266 of file MemProf.h.

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

◆ operator=()

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

Definition at line 255 of file MemProf.h.

References Other.

◆ operator==()

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

Definition at line 248 of file MemProf.h.

References Other.

◆ printYAML()

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

Definition at line 318 of file MemProf.h.

References OS.

◆ serialize()

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

Definition at line 280 of file MemProf.h.

References llvm::little, and OS.

◆ serializedSize()

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

Definition at line 312 of file MemProf.h.

Member Data Documentation

◆ Column

uint32_t llvm::memprof::Frame::Column = 0

Definition at line 230 of file MemProf.h.

Referenced by computeStackId().

◆ Function

GlobalValue::GUID llvm::memprof::Frame::Function = 0

Definition at line 222 of file MemProf.h.

Referenced by computeStackId().

◆ IsInlineFrame

bool llvm::memprof::Frame::IsInlineFrame = false

Definition at line 232 of file MemProf.h.

◆ LineOffset

uint32_t llvm::memprof::Frame::LineOffset = 0

Definition at line 227 of file MemProf.h.

Referenced by computeStackId().

◆ SymbolName

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

Definition at line 225 of file MemProf.h.


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