class ProfileSymbolList

Declaration

class ProfileSymbolList { /* full declaration omitted */ };

Description

ProfileSymbolList records the list of function symbols shown up in the binary used to generate the profile. It is useful to to discriminate a function being so cold as not to shown up in the profile and a function newly added.

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1280

Member Variables

private bool ToCompress = false
private DenseSet<llvm::StringRef> Syms
private llvm::BumpPtrAllocator Allocator

Method Overview

  • public void add(llvm::StringRef Name, bool copy = false)
  • public bool contains(llvm::StringRef Name)
  • public void dump(llvm::raw_ostream & OS = dbgs()) const
  • public void merge(const llvm::sampleprof::ProfileSymbolList & List)
  • public std::error_code read(const uint8_t * Data, uint64_t ListSize)
  • public void setToCompress(bool TC)
  • public unsigned int size()
  • public bool toCompress()
  • public std::error_code write(llvm::raw_ostream & OS)

Methods

void add(llvm::StringRef Name, bool copy = false)

Description

copy indicates whether we need to copy the underlying memory for the input Name.

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1284

Parameters

llvm::StringRef Name
bool copy = false

bool contains(llvm::StringRef Name)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1292

Parameters

llvm::StringRef Name

void dump(llvm::raw_ostream& OS = dbgs()) const

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1306

Parameters

llvm::raw_ostream& OS = dbgs()

void merge(
    const llvm::sampleprof::ProfileSymbolList&
        List)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1294

Parameters

const llvm::sampleprof::ProfileSymbolList& List

std::error_code read(const uint8_t* Data,
                     uint64_t ListSize)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1304

Parameters

const uint8_t* Data
uint64_t ListSize

void setToCompress(bool TC)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1301

Parameters

bool TC

unsigned int size()

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1299

bool toCompress()

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1302

std::error_code write(llvm::raw_ostream& OS)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:1305

Parameters

llvm::raw_ostream& OS