Function‐level or program‐level profile overlap statistics.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

struct OverlapStats;

Enums

Name

Description

OverlapStatsLevel

Granularity at which overlap is computed.

Member Functions

Name

Description

OverlapStats [constructor]

Construct overlap stats at level L (default ProgramLevel).

accumulateCounts

Accumulate counts from base and test profile files.

addOneMismatch

Record mismatch statistics for one function.

addOneUnique

Record uniqueness statistics for one function.

dump

Print overlap statistics to OS.

setFuncInfo

Set the function name and hash for function‐level stats.

Static Member Functions

Name

Description

score

Return a normalized overlap contribution for two count values.

Data Members

Name

Description

Base

Sum of total count values for the base profile.

BaseFilename

Path of the base profile file, if known.

FuncHash

Function hash when Level is FunctionLevel.

FuncName

Function name when Level is FunctionLevel.

Level

Whether these stats are program‐ or function‐scoped.

Mismatch

Counts present in one profile but mismatched in the other.

Overlap

Overlap score aggregates; values should be in [0.0, 1.0].

Test

Sum of total count values for the test profile.

TestFilename

Path of the test profile file, if known.

Unique

Counts unique to one of the profiles.

Valid

True when the stats have been successfully computed.

Created with MrDocs