LLVM
15.0.0git
|
InstrProfCorrelator - A base class used to create raw instrumentation data to their functions. More...
#include "llvm/ProfileData/InstrProfCorrelator.h"
Classes | |
struct | Context |
Public Types | |
enum | InstrProfCorrelatorKind { CK_32Bit, CK_64Bit } |
Public Member Functions | |
virtual Error | correlateProfileData ()=0 |
Construct a ProfileData vector used to correlate raw instrumentation data to their functions. More... | |
llvm::Optional< size_t > | getDataSize () const |
Return the number of ProfileData elements. More... | |
const char * | getNamesPointer () const |
Return a pointer to the names string that this class constructs. More... | |
size_t | getNamesSize () const |
Return the number of bytes in the names string. More... | |
uint64_t | getCountersSectionSize () const |
Return the size of the counters section in bytes. More... | |
InstrProfCorrelatorKind | getKind () const |
virtual | ~InstrProfCorrelator ()=default |
Static Public Member Functions | |
static llvm::Expected< std::unique_ptr< InstrProfCorrelator > > | get (StringRef DebugInfoFilename) |
Static Public Attributes | |
static const char * | FunctionNameAttributeName = "Function Name" |
static const char * | CFGHashAttributeName = "CFG Hash" |
static const char * | NumCountersAttributeName = "Num Counters" |
Protected Member Functions | |
InstrProfCorrelator (InstrProfCorrelatorKind K, std::unique_ptr< Context > Ctx) | |
Protected Attributes | |
const std::unique_ptr< InstrProfCorrelator::Context > | Ctx |
std::string | Names |
std::vector< std::string > | NamesVec |
InstrProfCorrelator - A base class used to create raw instrumentation data to their functions.
Definition at line 30 of file InstrProfCorrelator.h.
Enumerator | |
---|---|
CK_32Bit | |
CK_64Bit |
Definition at line 57 of file InstrProfCorrelator.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 74 of file InstrProfCorrelator.h.
|
pure virtual |
Construct a ProfileData vector used to correlate raw instrumentation data to their functions.
Implemented in llvm::InstrProfCorrelatorImpl< IntPtrT >.
|
static |
Definition at line 54 of file InstrProfCorrelator.cpp.
References llvm::object::MachOObjectFile::findDsymObjectMembers().
|
inline |
Return the size of the counters section in bytes.
Definition at line 49 of file InstrProfCorrelator.h.
References Ctx.
Optional< size_t > InstrProfCorrelator::getDataSize | ( | ) | const |
Return the number of ProfileData elements.
Definition at line 96 of file InstrProfCorrelator.cpp.
References llvm::dyn_cast().
|
inline |
Definition at line 58 of file InstrProfCorrelator.h.
|
inline |
Return a pointer to the names string that this class constructs.
Definition at line 43 of file InstrProfCorrelator.h.
References Names.
|
inline |
Return the number of bytes in the names string.
Definition at line 46 of file InstrProfCorrelator.h.
References Names.
|
static |
Definition at line 54 of file InstrProfCorrelator.h.
|
protected |
Definition at line 72 of file InstrProfCorrelator.h.
Referenced by getCountersSectionSize().
Definition at line 53 of file InstrProfCorrelator.h.
|
protected |
Definition at line 77 of file InstrProfCorrelator.h.
Referenced by getNamesPointer(), and getNamesSize().
|
protected |
Definition at line 78 of file InstrProfCorrelator.h.
|
static |
Definition at line 55 of file InstrProfCorrelator.h.