Builder that constructs a ProfileSummary from instrumentation profile records.

Synopsis

Declared in <llvm/ProfileData/ProfileCommon.h>

class InstrProfSummaryBuilder final
    : public ProfileSummaryBuilder

Base Classes

Name

Description

ProfileSummaryBuilder

Base builder that accumulates profile counts and computes a ProfileSummary.

Member Functions

Name

Description

InstrProfSummaryBuilder [constructor]

Construct a builder that will compute summary entries for Cutoffs.

addEntryCount

Record a function entry count from an instrumentation profile.

addInternalCount

Record an internal (non‐entry) block count from an instrumentation profile.

addRecord

Incorporate all counts from an instrumentation profile record.

getSummary

Compute and return the instrumentation profile summary.

Static Member Functions

Name

Description

getColdCountThreshold

Return the maximum count treated as cold for the given detailed summary.

getEntryForPercentile

Find the summary entry for a desired percentile of counts.

getHotCountThreshold

Return the minimum count treated as hot for the given detailed summary.

Static Data Members

Name

Description

DefaultCutoffs

A vector of useful cutoff values for detailed summary.

Protected Member Functions

Name

Description

addCount

This is called when a count is seen in the profile.

computeDetailedSummary

Compute the detailed percentile summary from the accumulated counts.

Protected Data Members

Name

Description

DetailedSummary

Detailed percentile summary entries computed from the accumulated counts.

MaxCount

Maximum profile count seen so far.

MaxFunctionCount

Maximum function entry count seen so far.

NumCounts

Number of individual profile counts recorded so far.

NumFunctions

Number of functions recorded so far.

TotalCount

Sum of all profile counts recorded so far.

Created with MrDocs