struct FunctionRecord
Declaration
struct FunctionRecord { /* full declaration omitted */ };
Description
Code coverage information for a single function.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:342
Member Variables
- public std::string Name
- Raw function name.
- public std::vector<std::string> Filenames
- TODO: Uniquing filenames across all function records may be a performance optimization.
- public std::vector<CountedRegion> CountedRegions
- Regions in the function along with their counts.
- public std::vector<CountedRegion> CountedBranchRegions
- Branch Regions in the function along with their counts.
- public uint64_t ExecutionCount = 0
- The number of times this function was executed.
Method Overview
- public FunctionRecord(llvm::StringRef Name, ArrayRef<llvm::StringRef> Filenames)
- public FunctionRecord(llvm::coverage::FunctionRecord && FR)
- public void pushRegion(llvm::coverage::CounterMappingRegion Region, uint64_t Count, uint64_t FalseCount)
Methods
¶FunctionRecord(
llvm::StringRef Name,
ArrayRef<llvm::StringRef> Filenames)
FunctionRecord(
llvm::StringRef Name,
ArrayRef<llvm::StringRef> Filenames)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:359
Parameters
- llvm::StringRef Name
- ArrayRef<llvm::StringRef> Filenames
¶FunctionRecord(
llvm::coverage::FunctionRecord&& FR)
FunctionRecord(
llvm::coverage::FunctionRecord&& FR)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:362
Parameters
¶void pushRegion(
llvm::coverage::CounterMappingRegion Region,
uint64_t Count,
uint64_t FalseCount)
void pushRegion(
llvm::coverage::CounterMappingRegion Region,
uint64_t Count,
uint64_t FalseCount)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:365
Parameters
- llvm::coverage::CounterMappingRegion Region
- uint64_t Count
- uint64_t FalseCount