class SampleProfileWriterExtBinaryBase

Declaration

class SampleProfileWriterExtBinaryBase
    : public SampleProfileWriterBinary { /* full declaration omitted */ };

Description

Sample-based profile writer (binary format).

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:144

Inherits from: SampleProfileWriterBinary

Member Variables

protected SmallVector<llvm::sampleprof::SecHdrTableEntry, 8> SectionHdrLayout

Inherited from SampleProfileWriterBinary:

protected NameTable

Inherited from SampleProfileWriter:

protected OutputStream
protected Summary
protected Format = SPF_None

Method Overview

Inherited from SampleProfileWriterBinary:

Inherited from SampleProfileWriter:

Methods

std::error_code addNewSection(
    llvm::sampleprof::SecType Sec,
    uint64_t SectionStart)

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:155

Parameters

llvm::sampleprof::SecType Sec
uint64_t SectionStart

virtual void initSectionHdrLayout()

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:156

uint64_t markSectionStart(
    llvm::sampleprof::SecType Type)

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:154

Parameters

llvm::sampleprof::SecType Type

void setToCompressAllSections()

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:150

void setToCompressSection(
    llvm::sampleprof::SecType Type)

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:151

Parameters

llvm::sampleprof::SecType Type

virtual std::error_code write(
    const StringMap<
        llvm::sampleprof::FunctionSamples>&
        ProfileMap)

Description

Write all the sample profiles in the given map of samples.

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:148

Parameters

const StringMap< llvm::sampleprof::FunctionSamples>& ProfileMap

Returns

status code of the file update operation.

virtual std::error_code writeSections(
    const StringMap<
        llvm::sampleprof::FunctionSamples>&
        ProfileMap)

Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:158

Parameters

const StringMap< llvm::sampleprof::FunctionSamples>& ProfileMap