class ProfileSymbolList
Declaration
class ProfileSymbolList { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:644
Method Overview
- public void add(llvm::StringRef Name, bool copy = false)
- public bool contains(llvm::StringRef Name)
- public void dump(llvm::raw_ostream & OS = dbgs()) const
- public void merge(const llvm::sampleprof::ProfileSymbolList & List)
- public std::error_code read(const uint8_t * Data, uint64_t ListSize)
- public void setToCompress(bool TC)
- public unsigned int size()
- public bool toCompress()
- public std::error_code write(llvm::raw_ostream & OS)
Methods
¶void add(llvm::StringRef Name, bool copy = false)
void add(llvm::StringRef Name, bool copy = false)
Description
copy indicates whether we need to copy the underlying memory for the input Name.
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:648
Parameters
- llvm::StringRef Name
- bool copy = false
¶bool contains(llvm::StringRef Name)
bool contains(llvm::StringRef Name)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:656
Parameters
- llvm::StringRef Name
¶void dump(llvm::raw_ostream& OS = dbgs()) const
void dump(llvm::raw_ostream& OS = dbgs()) const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:670
Parameters
- llvm::raw_ostream& OS = dbgs()
¶void merge(
const llvm::sampleprof::ProfileSymbolList&
List)
void merge(
const llvm::sampleprof::ProfileSymbolList&
List)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:658
Parameters
- const llvm::sampleprof::ProfileSymbolList& List
¶std::error_code read(const uint8_t* Data,
uint64_t ListSize)
std::error_code read(const uint8_t* Data,
uint64_t ListSize)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:668
Parameters
- const uint8_t* Data
- uint64_t ListSize
¶void setToCompress(bool TC)
void setToCompress(bool TC)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:665
Parameters
- bool TC
¶unsigned int size()
unsigned int size()
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:663
¶bool toCompress()
bool toCompress()
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:666
¶std::error_code write(llvm::raw_ostream& OS)
std::error_code write(llvm::raw_ostream& OS)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:669