LLVM 20.0.0git
|
#include "llvm/ProfileData/ProfileCommon.h"
Static Public Member Functions | |
static const ProfileSummaryEntry & | getEntryForPercentile (const SummaryEntryVector &DS, uint64_t Percentile) |
Find the summary entry for a desired percentile of counts. | |
static uint64_t | getHotCountThreshold (const SummaryEntryVector &DS) |
static uint64_t | getColdCountThreshold (const SummaryEntryVector &DS) |
Static Public Attributes | |
static const ArrayRef< uint32_t > | DefaultCutoffs |
A vector of useful cutoff values for detailed summary. | |
Protected Member Functions | |
ProfileSummaryBuilder (std::vector< uint32_t > Cutoffs) | |
~ProfileSummaryBuilder ()=default | |
void | addCount (uint64_t Count) |
This is called when a count is seen in the profile. | |
void | computeDetailedSummary () |
Protected Attributes | |
SummaryEntryVector | DetailedSummary |
uint64_t | TotalCount = 0 |
uint64_t | MaxCount = 0 |
uint64_t | MaxFunctionCount = 0 |
uint32_t | NumCounts = 0 |
uint32_t | NumFunctions = 0 |
Definition at line 45 of file ProfileCommon.h.
|
inlineprotected |
Definition at line 61 of file ProfileCommon.h.
|
protecteddefault |
|
inlineprotected |
This is called when a count is seen in the profile.
Definition at line 106 of file ProfileCommon.h.
References MaxCount, NumCounts, and TotalCount.
Referenced by llvm::SampleProfileSummaryBuilder::addRecord().
|
protected |
Definition at line 133 of file ProfileSummaryBuilder.cpp.
References assert(), D, DetailedSummary, End, llvm::APInt::getZExtValue(), N, llvm::ProfileSummary::Scale, llvm::APInt::sdiv(), llvm::sort(), and TotalCount.
Referenced by llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
static |
Definition at line 176 of file ProfileSummaryBuilder.cpp.
References ColdCountThreshold, getEntryForPercentile(), llvm::ProfileSummaryColdCount, and llvm::ProfileSummaryCutoffCold.
|
static |
Find the summary entry for a desired percentile of counts.
Definition at line 81 of file ProfileSummaryBuilder.cpp.
References llvm::partition_point(), and llvm::report_fatal_error().
Referenced by getColdCountThreshold(), and getHotCountThreshold().
|
static |
Definition at line 166 of file ProfileSummaryBuilder.cpp.
References getEntryForPercentile(), llvm::ProfileSummaryCutoffHot, and llvm::ProfileSummaryHotCount.
A vector of useful cutoff values for detailed summary.
Definition at line 70 of file ProfileCommon.h.
Referenced by llvm::sampleprof::SampleProfileReader::computeSummary(), and llvm::sampleprof::SampleProfileWriter::computeSummary().
|
protected |
Definition at line 54 of file ProfileCommon.h.
Referenced by computeDetailedSummary(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
protected |
Definition at line 56 of file ProfileCommon.h.
Referenced by addCount(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
protected |
Definition at line 57 of file ProfileCommon.h.
Referenced by llvm::SampleProfileSummaryBuilder::addRecord(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
protected |
Definition at line 58 of file ProfileCommon.h.
Referenced by addCount(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
protected |
Definition at line 59 of file ProfileCommon.h.
Referenced by llvm::SampleProfileSummaryBuilder::addRecord(), llvm::SampleProfileSummaryBuilder::computeSummaryForProfiles(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().
|
protected |
Definition at line 55 of file ProfileCommon.h.
Referenced by addCount(), computeDetailedSummary(), llvm::InstrProfSummaryBuilder::getSummary(), and llvm::SampleProfileSummaryBuilder::getSummary().