LLVM 20.0.0git
Public Member Functions | List of all members
llvm::SampleProfileSummaryBuilder Class Referencefinal

#include "llvm/ProfileData/ProfileCommon.h"

Inheritance diagram for llvm::SampleProfileSummaryBuilder:
Inheritance graph
[legend]

Public Member Functions

 SampleProfileSummaryBuilder (std::vector< uint32_t > Cutoffs)
 
void addRecord (const sampleprof::FunctionSamples &FS, bool isCallsiteSample=false)
 
std::unique_ptr< ProfileSummarycomputeSummaryForProfiles (const sampleprof::SampleProfileMap &Profiles)
 
std::unique_ptr< ProfileSummarygetSummary ()
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ProfileSummaryBuilder
static const ProfileSummaryEntrygetEntryForPercentile (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 inherited from llvm::ProfileSummaryBuilder
static const ArrayRef< uint32_tDefaultCutoffs
 A vector of useful cutoff values for detailed summary.
 
- Protected Member Functions inherited from llvm::ProfileSummaryBuilder
 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 inherited from llvm::ProfileSummaryBuilder
SummaryEntryVector DetailedSummary
 
uint64_t TotalCount = 0
 
uint64_t MaxCount = 0
 
uint64_t MaxFunctionCount = 0
 
uint32_t NumCounts = 0
 
uint32_t NumFunctions = 0
 

Detailed Description

Definition at line 93 of file ProfileCommon.h.

Constructor & Destructor Documentation

◆ SampleProfileSummaryBuilder()

llvm::SampleProfileSummaryBuilder::SampleProfileSummaryBuilder ( std::vector< uint32_t Cutoffs)
inline

Definition at line 95 of file ProfileCommon.h.

Member Function Documentation

◆ addRecord()

void SampleProfileSummaryBuilder::addRecord ( const sampleprof::FunctionSamples FS,
bool  isCallsiteSample = false 
)

◆ computeSummaryForProfiles()

std::unique_ptr< ProfileSummary > SampleProfileSummaryBuilder::computeSummaryForProfiles ( const sampleprof::SampleProfileMap Profiles)

◆ getSummary()

std::unique_ptr< ProfileSummary > SampleProfileSummaryBuilder::getSummary ( )

The documentation for this class was generated from the following files: