LLVM
12.0.0git
|
#include "llvm/ProfileData/SampleProfWriter.h"
Additional Inherited Members | |
![]() | |
SampleProfileWriterBinary (std::unique_ptr< raw_ostream > &OS) | |
virtual std::error_code | writeSample (const FunctionSamples &S) override |
Write samples of a top-level function to a binary file. More... | |
![]() | |
virtual | ~SampleProfileWriter ()=default |
virtual std::error_code | write (const StringMap< FunctionSamples > &ProfileMap) |
Write all the sample profiles in the given map of samples. More... | |
raw_ostream & | getOutputStream () |
virtual void | setProfileSymbolList (ProfileSymbolList *PSL) |
virtual void | setToCompressAllSections () |
virtual void | setUseMD5 () |
virtual void | setPartialProfile () |
![]() | |
static ErrorOr< std::unique_ptr< SampleProfileWriter > > | create (StringRef Filename, SampleProfileFormat Format) |
Profile writer factory. More... | |
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 . More... | |
![]() | |
virtual std::error_code | writeMagicIdent (SampleProfileFormat Format) |
virtual std::error_code | writeNameTable () |
virtual std::error_code | writeHeader (const StringMap< FunctionSamples > &ProfileMap) override |
Write a file header for the profile file. More... | |
std::error_code | writeSummary () |
std::error_code | writeNameIdx (StringRef FName) |
std::error_code | writeBody (const FunctionSamples &S) |
void | stablizeNameTable (std::set< StringRef > &V) |
void | addName (StringRef FName) |
void | addNames (const FunctionSamples &S) |
![]() | |
SampleProfileWriter (std::unique_ptr< raw_ostream > &OS) | |
virtual std::error_code | writeFuncProfiles (const StringMap< FunctionSamples > &ProfileMap) |
void | computeSummary (const StringMap< FunctionSamples > &ProfileMap) |
Compute summary for this profile. More... | |
![]() | |
MapVector< StringRef, uint32_t > | NameTable |
![]() | |
std::unique_ptr< raw_ostream > | OutputStream |
Output stream where to emit the profile to. More... | |
std::unique_ptr< ProfileSummary > | Summary |
Profile summary. More... | |
SampleProfileFormat | Format = SPF_None |
Profile format. More... | |
Definition at line 143 of file SampleProfWriter.h.