llvm::ProfileSummary::ProfileSummary

Construct a profile summary from the given statistics and cut-points.

Synopsis

Declared in <llvm/IR/ProfileSummary.h>

ProfileSummary(
    Kind K,
    SummaryEntryVector const& DetailedSummary,
    uint64_t TotalCount,
    uint64_t MaxCount,
    uint64_t MaxInternalCount,
    uint64_t MaxFunctionCount,
    uint32_t NumCounts,
    uint32_t NumFunctions,
    bool Partial = false,
    double PartialProfileRatio = 0);

Parameters

NameDescription
KKind of profile summarized.
DetailedSummaryPercentile cut-point entries.
TotalCountSum of all recorded counts.
MaxCountMaximum count across the profile.
MaxInternalCountMaximum non-entry count.
MaxFunctionCountMaximum function entry count.
NumCountsNumber of distinct count sites.
NumFunctionsNumber of functions with counts.
PartialWhether the profile covers only part of the program.
PartialProfileRatioRatio of program counters to partial-profile counters when Partial is true.