LLVM: llvm::sampleprofutil::SampleCoverageTracker Class Reference (original) (raw)
#include "[llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h](SampleProfileLoaderBaseUtil%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| bool | markSamplesUsed (const FunctionSamples *FS, uint32_t LineOffset, uint32_t Discriminator, uint64_t Samples) |
| Mark as used the sample record for the given function samples at (LineOffset, Discriminator). | |
| unsigned | computeCoverage (unsigned Used, unsigned Total) const |
| Return the fraction of sample records used in this profile. | |
| unsigned | countUsedRecords (const FunctionSamples *FS, ProfileSummaryInfo *PSI) const |
| Return the number of sample records that were applied from this profile. | |
| unsigned | countBodyRecords (const FunctionSamples *FS, ProfileSummaryInfo *PSI) const |
| Return the number of sample records in the body of this profile. | |
| uint64_t | getTotalUsedSamples () const |
| uint64_t | countBodySamples (const FunctionSamples *FS, ProfileSummaryInfo *PSI) const |
| Return the number of samples collected in the body of this profile. | |
| void | clear () |
| void | setProfAccForSymsInList (bool V) |
◆ clear()
| void llvm::sampleprofutil::SampleCoverageTracker::clear ( ) | inline |
|---|
◆ computeCoverage()
Return the fraction of sample records used in this profile.
The returned value is an unsigned integer in the range 0-100 indicating the percentage of sample records that were used while applying this profile to the associated function.
Definition at line 163 of file SampleProfileLoaderBaseUtil.cpp.
References assert(), and llvm::Total.
◆ countBodyRecords()
◆ countBodySamples()
◆ countUsedRecords()
◆ getTotalUsedSamples()
| uint64_t llvm::sampleprofutil::SampleCoverageTracker::getTotalUsedSamples ( ) const | inline |
|---|
◆ markSamplesUsed()
Mark as used the sample record for the given function samples at (LineOffset, Discriminator).
Returns
true if this is the first time we mark the given record.
Definition at line 81 of file SampleProfileLoaderBaseUtil.cpp.
References llvm::Count.
◆ setProfAccForSymsInList()
| void llvm::sampleprofutil::SampleCoverageTracker::setProfAccForSymsInList ( bool V) | inline |
|---|
The documentation for this class was generated from the following files:
- include/llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h
- lib/Transforms/Utils/SampleProfileLoaderBaseUtil.cpp