LLVM  8.0.1
Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
llvm::ProfileSummaryBuilder Class Reference

#include "llvm/ProfileData/ProfileCommon.h"

Inheritance diagram for llvm::ProfileSummaryBuilder:
Inheritance graph
[legend]
Collaboration diagram for llvm::ProfileSummaryBuilder:
Collaboration graph
[legend]

Static Public Attributes

static const ArrayRef< uint32_tDefaultCutoffs
 A vector of useful cutoff values for detailed summary. More...
 

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. More...
 
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
 

Detailed Description

Definition at line 40 of file ProfileCommon.h.

Constructor & Destructor Documentation

◆ ProfileSummaryBuilder()

llvm::ProfileSummaryBuilder::ProfileSummaryBuilder ( std::vector< uint32_t Cutoffs)
inlineprotected

Definition at line 56 of file ProfileCommon.h.

◆ ~ProfileSummaryBuilder()

llvm::ProfileSummaryBuilder::~ProfileSummaryBuilder ( )
protecteddefault

Member Function Documentation

◆ addCount()

void llvm::ProfileSummaryBuilder::addCount ( uint64_t  Count)
inlineprotected

This is called when a count is seen in the profile.

Definition at line 92 of file ProfileCommon.h.

Referenced by llvm::SampleProfileSummaryBuilder::addRecord(), and llvm::InstrProfSummaryBuilder::getSummary().

◆ computeDetailedSummary()

void ProfileSummaryBuilder::computeDetailedSummary ( )
protected

Member Data Documentation

◆ DefaultCutoffs

const ArrayRef< uint32_t > ProfileSummaryBuilder::DefaultCutoffs
static

◆ DetailedSummary

SummaryEntryVector llvm::ProfileSummaryBuilder::DetailedSummary
protected

◆ MaxCount

uint64_t llvm::ProfileSummaryBuilder::MaxCount = 0
protected

◆ MaxFunctionCount

uint64_t llvm::ProfileSummaryBuilder::MaxFunctionCount = 0
protected

◆ NumCounts

uint32_t llvm::ProfileSummaryBuilder::NumCounts = 0
protected

◆ NumFunctions

uint32_t llvm::ProfileSummaryBuilder::NumFunctions = 0
protected

◆ TotalCount

uint64_t llvm::ProfileSummaryBuilder::TotalCount = 0
protected

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