LLVM 20.0.0git
List of all members
llvm::sampleprof::SampleProfileWriterRawBinary Class Reference

#include "llvm/ProfileData/SampleProfWriter.h"

Inheritance diagram for llvm::sampleprof::SampleProfileWriterRawBinary:
Inheritance graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary
 SampleProfileWriterBinary (std::unique_ptr< raw_ostream > &OS)
 
std::error_code writeSample (const FunctionSamples &S) override
 Write samples of a top-level function to a binary file.
 
- Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter
virtual ~SampleProfileWriter ()=default
 
virtual std::error_code writeSample (const FunctionSamples &S)=0
 Write sample profiles in S.
 
virtual std::error_code write (const SampleProfileMap &ProfileMap)
 Write all the sample profiles in the given map of samples.
 
template<typename FunctionPruningStrategy = DefaultFunctionPruningStrategy>
std::error_code writeWithSizeLimit (SampleProfileMap &ProfileMap, size_t OutputSizeLimit)
 Write sample profiles up to given size limit, using the pruning strategy to drop some functions if necessary.
 
raw_ostreamgetOutputStream ()
 
virtual void setProfileSymbolList (ProfileSymbolList *PSL)
 
virtual void setToCompressAllSections ()
 
virtual void setUseMD5 ()
 
virtual void setPartialProfile ()
 
virtual void setUseCtxSplitLayout ()
 
- Static Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter
static ErrorOr< std::unique_ptr< SampleProfileWriter > > create (StringRef Filename, SampleProfileFormat Format)
 Profile writer factory.
 
static ErrorOr< std::unique_ptr< SampleProfileWriter > > create (std::unique_ptr< raw_ostream > &OS, SampleProfileFormat Format)
 Create a new stream writer based on the value of Format.
 
- Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary
virtual MapVector< FunctionId, uint32_t > & getNameTable ()
 
virtual std::error_code writeMagicIdent (SampleProfileFormat Format)
 
virtual std::error_code writeNameTable ()
 
std::error_code writeHeader (const SampleProfileMap &ProfileMap) override
 Write a file header for the profile file.
 
std::error_code writeSummary ()
 
virtual std::error_code writeContextIdx (const SampleContext &Context)
 
std::error_code writeNameIdx (FunctionId FName)
 
std::error_code writeBody (const FunctionSamples &S)
 
void stablizeNameTable (MapVector< FunctionId, uint32_t > &NameTable, std::set< FunctionId > &V)
 
void addName (FunctionId FName)
 
virtual void addContext (const SampleContext &Context)
 
void addNames (const FunctionSamples &S)
 
- Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriter
 SampleProfileWriter (std::unique_ptr< raw_ostream > &OS)
 
virtual std::error_code writeHeader (const SampleProfileMap &ProfileMap)=0
 Write a file header for the profile file.
 
virtual std::error_code writeFuncProfiles (const SampleProfileMap &ProfileMap)
 
std::error_code writeWithSizeLimitInternal (SampleProfileMap &ProfileMap, size_t OutputSizeLimit, FunctionPruningStrategy *Strategy)
 
void computeSummary (const SampleProfileMap &ProfileMap)
 Compute summary for this profile.
 
- Protected Attributes inherited from llvm::sampleprof::SampleProfileWriterBinary
MapVector< FunctionId, uint32_tNameTable
 
- Protected Attributes inherited from llvm::sampleprof::SampleProfileWriter
size_t LineCount
 For writeWithSizeLimit in text mode, each newline takes 1 additional byte on Windows when actually written to the file, but not written to a memory buffer.
 
std::unique_ptr< raw_ostreamOutputStream
 Output stream where to emit the profile to.
 
std::unique_ptr< ProfileSummarySummary
 Profile summary.
 
SampleProfileFormat Format = SPF_None
 Profile format.
 

Detailed Description

Definition at line 232 of file SampleProfWriter.h.


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