|
LLVM
10.0.0
|
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. More... | |
| 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 644 of file SampleProf.h.
copy indicates whether we need to copy the underlying memory for the input Name.
Definition at line 648 of file SampleProf.h.
References Allocator, llvm::StringRef::copy(), and llvm::copy().
Definition at line 656 of file SampleProf.h.
| void ProfileSymbolList::dump | ( | raw_ostream & | OS = dbgs() | ) | const |
Definition at line 232 of file SampleProf.cpp.
References llvm::sort().
|
inline |
Definition at line 658 of file SampleProf.h.
References add().
| std::error_code ProfileSymbolList::read | ( | const uint8_t * | Data, |
| uint64_t | ListSize | ||
| ) |
Definition at line 201 of file SampleProf.cpp.
References add(), llvm::malformed, Size, llvm::StringRef::size(), and llvm::success.
|
inline |
Definition at line 665 of file SampleProf.h.
|
inline |
Definition at line 663 of file SampleProf.h.
|
inline |
Definition at line 666 of file SampleProf.h.
References Allocator, llvm::Data, llvm::dbgs(), llvm::dump(), llvm::support::endian::read(), and write().
| std::error_code ProfileSymbolList::write | ( | raw_ostream & | OS | ) |
Definition at line 215 of file SampleProf.cpp.
References llvm::sort(), and llvm::success.
1.8.13