LLVM 19.0.0git
|
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) |
void | merge (const ProfileSymbolList &List) |
unsigned | size () |
void | setToCompress (bool TC) |
bool | toCompress () |
std::error_code | read (const uint8_t *Data, uint64_t ListSize) |
std::error_code | write (raw_ostream &OS) |
void | dump (raw_ostream &OS=dbgs()) const |
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 1506 of file SampleProf.h.
copy indicates whether we need to copy the underlying memory for the input Name.
Definition at line 1510 of file SampleProf.h.
References llvm::copy(), and Name.
Definition at line 1518 of file SampleProf.h.
References Name.
void ProfileSymbolList::dump | ( | raw_ostream & | OS = dbgs() | ) | const |
Definition at line 404 of file SampleProf.cpp.
References OS, llvm::sort(), and Sym.
|
inline |
Definition at line 1520 of file SampleProf.h.
References add(), llvm::List, and Sym.
Definition at line 315 of file SampleProf.cpp.
References add(), llvm::Data, llvm::malformed, ProfileSymbolListCutOff, Size, and llvm::success.
|
inline |
Definition at line 1527 of file SampleProf.h.
|
inline |
Definition at line 1525 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeProfileSymbolListSection().
|
inline |
Definition at line 1528 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeOneSection().
std::error_code ProfileSymbolList::write | ( | raw_ostream & | OS | ) |
Definition at line 388 of file SampleProf.cpp.
References OS, llvm::sort(), llvm::success, and Sym.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeProfileSymbolListSection().