Aggregated profile summary statistics for a module or compilation unit.

Synopsis

Declared in <llvm/IR/ProfileSummary.h>

class ProfileSummary;

Enums

Name

Description

Kind

Kind of profile data summarized by this object.

Member Functions

Name

Description

ProfileSummary [constructor]

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

getDetailedSummary

Return the detailed cut‐point summary entries.

getKind

Return the kind of profile summarized by this object.

getMD

Return summary information as metadata.

getMaxCount

Return the maximum count across all sites in the profile.

getMaxFunctionCount

Return the maximum function entry count in the profile.

getMaxInternalCount

Return the maximum non‐entry (internal) count in the profile.

getNumCounts

Return the number of distinct count sites in the profile.

getNumFunctions

Return the number of functions that have profile counts.

getPartialProfileRatio

Return the ratio of program counters to counters in the partial profile.

getTotalCount

Return the total profile count across all recorded functions.

isPartialProfile

Return true if this summary describes a partial profile.

printDetailedSummary

Print the detailed percentile cut‐point summary to OS.

printSummary

Print a high‐level summary of the profile to OS.

setPartialProfile

Mark whether this summary describes a partial profile.

setPartialProfileRatio

Set the ratio of profile counters in the built program to those in the partial profile. Requires isPartialProfile().

Static Member Functions

Name

Description

getFromMD

Construct profile summary from metadata.

Static Data Members

Name

Description

Scale

Scale factor used when encoding percentile cutoffs as integers.

Created with MrDocs