Builder that constructs a ProfileSummary from sample profile data.
Declared in <llvm/ProfileData/ProfileCommon.h>
class SampleProfileSummaryBuilder final
: public ProfileSummaryBuilder
| Name | Description |
|---|---|
ProfileSummaryBuilder | Base builder that accumulates profile counts and computes a ProfileSummary. |
| 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. |
| 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. |
| Name | Description |
|---|---|
DefaultCutoffs | A vector of useful cutoff values for detailed summary. |
| Name | Description |
|---|---|
addCount | This is called when a count is seen in the profile. |
computeDetailedSummary | Compute the detailed percentile summary from the accumulated counts. |
| 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. |