llvm::sampleprof::ProfileSymbolList

Records function symbols present in the binary that produced the profile.

Synopsis

Declared in <llvm/ProfileData/SampleProf.h>

class ProfileSymbolList;

Description

ProfileSymbolList records the list of function symbols shown up in the binary used to generate the profile. It is useful to discriminate a function being so cold as not to shown up in the profile and a function newly added.

Member Functions

NameDescription
add Add Name to the symbol list.
collectGUIDs Collect sorted unique MD5 GUIDs for all string symbols.
contains Return true if Name is present in the symbol list.
dump Dump the symbol list for debugging.
getColdGUIDTable Return the cold GUID table when this list is in MD5 mode.
isMD5 Return true if symbols are stored as MD5 GUIDs.
merge Merge symbols from List into this list.
read Read a symbol list from a binary buffer.
reserve Reserve capacity for at least Size string symbols.
setColdGUIDTable Install a pre-hashed cold GUID table and switch to MD5 mode.
size Return the number of symbols in the list.
write Write the symbol list to OS.