Module coverage

Module coverage 

Source

Modules§

coverage_mapping
reporting

Structs§

CountedRegion
Associates a source range with a specific counter. The equivalent llvm type is CountedRegion.
Counter
A Counter is an abstract value that describes how to compute the execution count for a region of code using the collected profile count data. The equivalent type in llvm would be Counter.
CounterMappingRegion
Associates a source code reader with a specific counter. The equivalent type in llvm would be CounterMappingRegion.
CoverageMappingInfo
CoverageMappingRecord
Coverage mapping information for a single function. The equivalent llvm type is CoverageMappingRecord.
CoverageSegment
The execution count information starting at a point in a file. A sequence of execution counters for a file in a format hat’s simple to iterate over for processing. The equivalent llvm type is CoverageSegment.
Expression
A counter expression is a value that represents an arithmetic operation between two counters. The equivalent llvm type would be CounterExpression.
FunctionCoverageRecord
This is the code coverage information for a single function. It is equivalent to FunctionRecord but has been renamed to avoid confusion with FunctionRecordV3 etc
FunctionRecordHeader
FunctionRecordV3
This type contains a header showing which function it refers to and then a list of regions in that function and a list of expressions. The expression IDs in the counter mapping region refer to indexes in the expressions list.
ProfileData
SourceLocation
Refers to a location in the source code

Enums§

CounterType
Represents the type of a counter. The equivalent type in llvm would be Counter::CounterKind.
ExprKind
This is the type of a counter expression. The equivalent type in llvm would be CounterExpression::ExprKind an inner enum.
RegionKind
Defines what type of region a counter maps to. The equivalent type in llvm would be CounterMappingRegion::RegionKind.