LLVM 24.0.0git
llvm::sampleprof::ProfileSymbolList Class Reference

ProfileSymbolList records the list of function symbols shown up in the binary used to generate the profile. More...

#include "llvm/ProfileData/SampleProf.h"

Public Member Functions

void add (StringRef Name, bool Copy=false)
 copy indicates whether we need to copy the underlying memory for the input Name.
bool contains (StringRef Name) const
void merge (const ProfileSymbolList &List)
unsigned size () const
void reserve (size_t Size)
void setToCompress (bool TC)
bool toCompress ()
std::vector< uint64_tcollectGUIDs () const
void setColdGUIDTable (EytzingerTableSpan< support::ulittle64_t > Table)
EytzingerTableSpan< support::ulittle64_tgetColdGUIDTable () const
bool isMD5 () const
LLVM_ABI std::error_code read (const uint8_t *Data, uint64_t ListSize)
LLVM_ABI std::error_code write (raw_ostream &OS)
LLVM_ABI void dump (raw_ostream &OS=dbgs()) const

Detailed Description

ProfileSymbolList records the list of function symbols shown up in the binary used to generate the profile.

It is useful to to discriminate a function being so cold as not to shown up in the profile and a function newly added.

Definition at line 1687 of file SampleProf.h.

Member Function Documentation

◆ add()

void llvm::sampleprof::ProfileSymbolList::add ( StringRef Name,
bool Copy = false )
inline

copy indicates whether we need to copy the underlying memory for the input Name.

Definition at line 1691 of file SampleProf.h.

Referenced by merge(), and read().

◆ collectGUIDs()

std::vector< uint64_t > llvm::sampleprof::ProfileSymbolList::collectGUIDs ( ) const
inline

◆ contains()

bool llvm::sampleprof::ProfileSymbolList::contains ( StringRef Name) const
inline

Definition at line 1699 of file SampleProf.h.

References llvm::sampleprof::MD5Hash().

◆ dump()

void ProfileSymbolList::dump ( raw_ostream & OS = dbgs()) const

Definition at line 494 of file SampleProf.cpp.

References llvm::sort().

◆ getColdGUIDTable()

EytzingerTableSpan< support::ulittle64_t > llvm::sampleprof::ProfileSymbolList::getColdGUIDTable ( ) const
inline

Definition at line 1734 of file SampleProf.h.

References assert().

◆ isMD5()

bool llvm::sampleprof::ProfileSymbolList::isMD5 ( ) const
inline

Definition at line 1738 of file SampleProf.h.

◆ merge()

void llvm::sampleprof::ProfileSymbolList::merge ( const ProfileSymbolList & List)
inline

Definition at line 1704 of file SampleProf.h.

References add(), assert(), and llvm::List.

◆ read()

std::error_code ProfileSymbolList::read ( const uint8_t * Data,
uint64_t ListSize )

◆ reserve()

void llvm::sampleprof::ProfileSymbolList::reserve ( size_t Size)
inline

Definition at line 1712 of file SampleProf.h.

References Size.

Referenced by read().

◆ setColdGUIDTable()

void llvm::sampleprof::ProfileSymbolList::setColdGUIDTable ( EytzingerTableSpan< support::ulittle64_t > Table)
inline

Definition at line 1728 of file SampleProf.h.

References assert().

◆ setToCompress()

void llvm::sampleprof::ProfileSymbolList::setToCompress ( bool TC)
inline

Definition at line 1714 of file SampleProf.h.

◆ size()

unsigned llvm::sampleprof::ProfileSymbolList::size ( ) const
inline

Definition at line 1711 of file SampleProf.h.

◆ toCompress()

bool llvm::sampleprof::ProfileSymbolList::toCompress ( )
inline

Definition at line 1715 of file SampleProf.h.

◆ write()

std::error_code ProfileSymbolList::write ( raw_ostream & OS)

Definition at line 478 of file SampleProf.cpp.

References llvm::sort(), and llvm::success.


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