class InstrumentationMap

Declaration

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

Description

The InstrumentationMap represents the computed function id's and indicated function addresses from an object file (or a YAML file). This provides an interface to just the mapping between the function id, and the function address. We also provide raw access to the actual instrumentation map entries we find associated with a particular object file.

Declared at: llvm/include/llvm/XRay/InstrumentationMap.h:72

Method Overview

  • public Optional<uint64_t> getFunctionAddr(int32_t FuncId) const
  • public const llvm::xray::InstrumentationMap::FunctionAddressMap & getFunctionAddresses()
  • public Optional<int32_t> getFunctionId(uint64_t Addr) const
  • public const llvm::xray::InstrumentationMap::SledContainer & sleds() const

Methods

Optional<uint64_t> getFunctionAddr(
    int32_t FuncId) const

Description

Returns the function address for a function id.

Declared at: llvm/include/llvm/XRay/InstrumentationMap.h:93

Parameters

int32_t FuncId

const llvm::xray::InstrumentationMap::
    FunctionAddressMap&
    getFunctionAddresses()

Description

Provides a raw accessor to the unordered map of function addresses.

Declared at: llvm/include/llvm/XRay/InstrumentationMap.h:87

Optional<int32_t> getFunctionId(
    uint64_t Addr) const

Description

Returns an XRay computed function id, provided a function address.

Declared at: llvm/include/llvm/XRay/InstrumentationMap.h:90

Parameters

uint64_t Addr

const llvm::xray::InstrumentationMap::
    SledContainer&
    sleds() const

Description

Provide read-only access to the entries of the instrumentation map.

Declared at: llvm/include/llvm/XRay/InstrumentationMap.h:96