class SampleProfileWriterCompactBinary
Declaration
class SampleProfileWriterCompactBinary
: public SampleProfileWriterBinary { /* full declaration omitted */ };
Description
Sample-based profile writer (binary format).
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:376
Inherits from: SampleProfileWriterBinary
Member Variables
- protected MapVector<llvm::StringRef, uint64_t> FuncOffsetTable
- The table mapping from function name to the offset of its FunctionSample towards profile start.
- protected uint64_t TableOffset
- The offset of the slot to be filled with the offset of FuncOffsetTable towards profile start.
Inherited from SampleProfileWriterBinary:
Inherited from SampleProfileWriter:
Method Overview
- public std::error_code write(const llvm::sampleprof::SampleProfileMap & ProfileMap)
- protected std::error_code writeFuncOffsetTable()
- protected std::error_code writeHeader(const llvm::sampleprof::SampleProfileMap & ProfileMap)
- protected std::error_code writeNameTable()
- public std::error_code writeSample(const llvm::sampleprof::FunctionSamples & S)
Inherited from SampleProfileWriterBinary:
- protected addContext
- protected addName
- protected addNames
- protected getNameTable
- protected stablizeNameTable
- protected writeBody
- protected writeContextIdx
- protected writeHeader
- protected writeMagicIdent
- protected writeNameIdx
- protected writeNameTable
- public writeSample
- protected writeSummary
Inherited from SampleProfileWriter:
- protected computeSummary
- public create
- public create
- public getOutputStream
- public resetSecLayout
- public setPartialProfile
- public setProfileSymbolList
- public setToCompressAllSections
- public setUseMD5
- public write
- protected writeFuncProfiles
- protected writeHeader
- public writeSample
Methods
¶std::error_code write(
const llvm::sampleprof::SampleProfileMap&
ProfileMap)
std::error_code write(
const llvm::sampleprof::SampleProfileMap&
ProfileMap)
Description
Write all the sample profiles in the given map of samples.
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:381
Parameters
- const llvm::sampleprof::SampleProfileMap& ProfileMap
Returns
status code of the file update operation.
¶std::error_code writeFuncOffsetTable()
std::error_code writeFuncOffsetTable()
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:392
¶std::error_code writeHeader(
const llvm::sampleprof::SampleProfileMap&
ProfileMap)
std::error_code writeHeader(
const llvm::sampleprof::SampleProfileMap&
ProfileMap)
Description
Write a file header for the profile file.
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:391
Parameters
- const llvm::sampleprof::SampleProfileMap& ProfileMap
¶std::error_code writeNameTable()
std::error_code writeNameTable()
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:390
¶std::error_code writeSample(
const llvm::sampleprof::FunctionSamples& S)
std::error_code writeSample(
const llvm::sampleprof::FunctionSamples& S)
Description
Write sample profiles in \p S.
Declared at: llvm/include/llvm/ProfileData/SampleProfWriter.h:380
Parameters
- const llvm::sampleprof::FunctionSamples& S
Returns
status code of the file update operation.