LLVM 20.0.0git
|
#include "llvm/ProfileData/ProfileCommon.h"
Public Member Functions | |
SampleProfileSummaryBuilder (std::vector< uint32_t > Cutoffs) | |
void | addRecord (const sampleprof::FunctionSamples &FS, bool isCallsiteSample=false) |
std::unique_ptr< ProfileSummary > | computeSummaryForProfiles (const sampleprof::SampleProfileMap &Profiles) |
std::unique_ptr< ProfileSummary > | getSummary () |
Definition at line 93 of file ProfileCommon.h.
|
inline |
Definition at line 95 of file ProfileCommon.h.
void SampleProfileSummaryBuilder::addRecord | ( | const sampleprof::FunctionSamples & | FS, |
bool | isCallsiteSample = false |
||
) |
Definition at line 109 of file ProfileSummaryBuilder.cpp.
References llvm::ProfileSummaryBuilder::addCount(), addRecord(), llvm::sampleprof::ContextDuplicatedIntoBase, I, llvm::ProfileSummaryBuilder::MaxFunctionCount, and llvm::ProfileSummaryBuilder::NumFunctions.
Referenced by addRecord(), and computeSummaryForProfiles().
std::unique_ptr< ProfileSummary > SampleProfileSummaryBuilder::computeSummaryForProfiles | ( | const sampleprof::SampleProfileMap & | Profiles | ) |
Definition at line 193 of file ProfileSummaryBuilder.cpp.
References addRecord(), assert(), llvm::sampleprof::ProfileConverter::flattenProfile(), getSummary(), I, llvm::ProfileSummaryBuilder::NumFunctions, Profile, llvm::sampleprof::FunctionSamples::ProfileIsCS, and llvm::UseContextLessSummary.
Referenced by llvm::sampleprof::SampleProfileReader::computeSummary(), and llvm::sampleprof::SampleProfileWriter::computeSummary().
std::unique_ptr< ProfileSummary > SampleProfileSummaryBuilder::getSummary | ( | ) |
Definition at line 185 of file ProfileSummaryBuilder.cpp.
References llvm::ProfileSummaryBuilder::computeDetailedSummary(), llvm::ProfileSummaryBuilder::DetailedSummary, llvm::ProfileSummaryBuilder::MaxCount, llvm::ProfileSummaryBuilder::MaxFunctionCount, llvm::ProfileSummaryBuilder::NumCounts, llvm::ProfileSummaryBuilder::NumFunctions, llvm::ProfileSummary::PSK_Sample, and llvm::ProfileSummaryBuilder::TotalCount.
Referenced by computeSummaryForProfiles().