LLVM 17.0.0git
|
DwarfInstrProfCorrelator - A child of InstrProfCorrelatorImpl that takes DWARF debug info as input to correlate profiles. More...
#include "llvm/ProfileData/InstrProfCorrelator.h"
Public Member Functions | |
DwarfInstrProfCorrelator (std::unique_ptr< DWARFContext > DICtx, std::unique_ptr< InstrProfCorrelator::Context > Ctx) | |
![]() | |
InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx) | |
const RawInstrProf::ProfileData< IntPtrT > * | getDataPointer () const |
Return a pointer to the underlying ProfileData vector that this class constructs. | |
size_t | getDataSize () const |
Return the number of ProfileData elements. | |
InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx) | |
InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx) | |
bool | classof (const InstrProfCorrelator *C) |
bool | classof (const InstrProfCorrelator *C) |
![]() | |
virtual Error | correlateProfileData ()=0 |
Construct a ProfileData vector used to correlate raw instrumentation data to their functions. | |
virtual Error | dumpYaml (raw_ostream &OS)=0 |
Process debug info and dump the correlation data. | |
std::optional< size_t > | getDataSize () const |
Return the number of ProfileData elements. | |
const char * | getNamesPointer () const |
Return a pointer to the names string that this class constructs. | |
size_t | getNamesSize () const |
Return the number of bytes in the names string. | |
uint64_t | getCountersSectionSize () const |
Return the size of the counters section in bytes. | |
InstrProfCorrelatorKind | getKind () const |
virtual | ~InstrProfCorrelator ()=default |
Additional Inherited Members | |
![]() | |
enum | InstrProfCorrelatorKind { CK_32Bit , CK_64Bit } |
![]() | |
static bool | classof (const InstrProfCorrelator *C) |
static llvm::Expected< std::unique_ptr< InstrProfCorrelatorImpl< IntPtrT > > > | get (std::unique_ptr< InstrProfCorrelator::Context > Ctx, const object::ObjectFile &Obj) |
![]() | |
static llvm::Expected< std::unique_ptr< InstrProfCorrelator > > | get (StringRef DebugInfoFilename) |
![]() | |
static const char * | FunctionNameAttributeName = "Function Name" |
static const char * | CFGHashAttributeName = "CFG Hash" |
static const char * | NumCountersAttributeName = "Num Counters" |
![]() | |
Error | correlateProfileData () override |
Construct a ProfileData vector used to correlate raw instrumentation data to their functions. | |
virtual void | correlateProfileDataImpl (InstrProfCorrelator::CorrelationData *Data=nullptr)=0 |
Error | dumpYaml (raw_ostream &OS) override |
Process debug info and dump the correlation data. | |
void | addProbe (StringRef FunctionName, uint64_t CFGHash, IntPtrT CounterOffset, IntPtrT FunctionPtr, uint32_t NumCounters) |
![]() | |
InstrProfCorrelator (InstrProfCorrelatorKind K, std::unique_ptr< Context > Ctx) | |
![]() | |
std::vector< RawInstrProf::ProfileData< IntPtrT > > | Data |
![]() | |
const std::unique_ptr< Context > | Ctx |
std::string | Names |
std::vector< std::string > | NamesVec |
DwarfInstrProfCorrelator - A child of InstrProfCorrelatorImpl that takes DWARF debug info as input to correlate profiles.
Definition at line 158 of file InstrProfCorrelator.h.
|
inline |
Definition at line 160 of file InstrProfCorrelator.h.