Builder that constructs a ProfileSummary from sample profile data.

Synopsis

Declared in <llvm/ProfileData/ProfileCommon.h>

class SampleProfileSummaryBuilder final
    : public ProfileSummaryBuilder

Base Classes

Name

Description

ProfileSummaryBuilder

Base builder that accumulates profile counts and computes a ProfileSummary.

Member Functions

Name

Description

SampleProfileSummaryBuilder [constructor]

Construct a builder that will compute summary entries for Cutoffs.

addRecord

Incorporate sample counts from a function's sample profile.

computeSummaryForProfiles

Compute a profile summary from a map of function sample profiles.

getSummary

Compute and return the sample profile summary from recorded samples.

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