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:
Inherited from SampleProfileWriter:
Method Overview
- protected std::error_code addNewSection(llvm::sampleprof::SecType Sec, uint64_t SectionStart)
- protected virtual void initSectionHdrLayout()
- protected uint64_t markSectionStart(llvm::sampleprof::SecType Type)
- public void setToCompressAllSections()
- public void setToCompressSection(llvm::sampleprof::SecType Type)
- public virtual std::error_code write(const StringMap<llvm::sampleprof::FunctionSamples> & ProfileMap)
- protected virtual std::error_code writeSections(const StringMap<llvm::sampleprof::FunctionSamples> & ProfileMap)
Inherited from SampleProfileWriterBinary:
- protected addName
- protected addNames
- protected stablizeNameTable
- protected writeBody
- protected writeHeader
- protected writeMagicIdent
- protected writeNameIdx
- protected writeNameTable
- public writeSample
- protected writeSummary
Inherited from SampleProfileWriter:
- protected computeSummary
- public create
- public create
- public getOutputStream
- public setProfileSymbolList
- public write
- protected writeFuncProfiles
- protected writeHeader
- public writeSample
Methods
¶std::error_code addNewSection(
llvm::sampleprof::SecType Sec,
uint64_t SectionStart)
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()
virtual void initSectionHdrLayout()
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:156
¶uint64_t markSectionStart(
llvm::sampleprof::SecType Type)
uint64_t markSectionStart(
llvm::sampleprof::SecType Type)
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:154
Parameters
- llvm::sampleprof::SecType Type
¶void setToCompressAllSections()
void setToCompressAllSections()
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:150
¶void setToCompressSection(
llvm::sampleprof::SecType Type)
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)
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)
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