class InstrProfCorrelator

Declaration

class InstrProfCorrelator { /* full declaration omitted */ };

Description

InstrProfCorrelator - A base class used to create raw instrumentation data to their functions.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:30

Member Variables

protected const std::unique_ptr< InstrProfCorrelator::Context> Ctx
protected std::string Names
protected std::vector<std::string> NamesVec
private const llvm::InstrProfCorrelator:: InstrProfCorrelatorKind Kind
public static const char* FunctionNameAttributeName
public static const char* CFGHashAttributeName
public static const char* NumCountersAttributeName

Method Overview

Methods

InstrProfCorrelator(llvm::InstrProfCorrelator::
                        InstrProfCorrelatorKind K,
                    std::unique_ptr<Context> Ctx)

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:74

Parameters

llvm::InstrProfCorrelator::InstrProfCorrelatorKind K
std::unique_ptr<Context> Ctx

virtual llvm::Error correlateProfileData()

Description

Construct a ProfileData vector used to correlate raw instrumentation data to their functions.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:37

static llvm::Expected<
    std::unique_ptr<InstrProfCorrelator>>
get(llvm::StringRef DebugInfoFilename)

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:33

Parameters

llvm::StringRef DebugInfoFilename

static llvm::Expected<
    std::unique_ptr<InstrProfCorrelator>>
get(std::unique_ptr<MemoryBuffer> Buffer)

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:82

Parameters

std::unique_ptr<MemoryBuffer> Buffer

uint64_t getCountersSectionSize() const

Description

Return the size of the counters section in bytes.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:49

llvm::Optional<size_t> getDataSize() const

Description

Return the number of ProfileData elements.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:40

llvm::InstrProfCorrelator::InstrProfCorrelatorKind
getKind() const

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:58

const char* getNamesPointer() const

Description

Return a pointer to the names string that this class constructs.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:43

size_t getNamesSize() const

Description

Return the number of bytes in the names string.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:46

virtual ~InstrProfCorrelator()

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:59