Fill Counts with the profile data for the given function name.

Synopsis

Declared in <llvm/ProfileData/InstrProfReader.h>

Error
getFunctionCounts(
    StringRef FuncName,
    uint64_t FuncHash,
    std::vector<uint64_t>& Counts);

Return Value

Success, or an error if the function counters cannot be read.

Parameters

Name

Description

FuncName

Function name whose counters are requested.

FuncHash

Function CFG hash that must match the record.

Counts

Output vector filled with the function's counter values.

Created with MrDocs