|
LLVM
8.0.1
|
#include "llvm/ProfileData/SampleProfWriter.h"


Protected Member Functions | |
| virtual std::error_code | writeNameTable () override |
| virtual std::error_code | writeMagicIdent () override |
Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary | |
| 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) |
Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriter | |
| SampleProfileWriter (std::unique_ptr< raw_ostream > &OS) | |
| void | computeSummary (const StringMap< FunctionSamples > &ProfileMap) |
| Compute summary for this profile. More... | |
Additional Inherited Members | |
Public Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary | |
| virtual std::error_code | write (const FunctionSamples &S) override |
| Write samples of a top-level function to a binary file. More... | |
| SampleProfileWriterBinary (std::unique_ptr< raw_ostream > &OS) | |
Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter | |
| 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 () |
Static Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter | |
| 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... | |
Protected Attributes inherited from llvm::sampleprof::SampleProfileWriterBinary | |
| MapVector< StringRef, uint32_t > | NameTable |
Protected Attributes inherited from llvm::sampleprof::SampleProfileWriter | |
| std::unique_ptr< raw_ostream > | OutputStream |
| Output stream where to emit the profile to. More... | |
| std::unique_ptr< ProfileSummary > | Summary |
| Profile summary. More... | |
Definition at line 131 of file SampleProfWriter.h.
|
overrideprotectedvirtual |
Implements llvm::sampleprof::SampleProfileWriterBinary.
Definition at line 219 of file SampleProfWriter.cpp.
References llvm::encodeULEB128(), llvm::sampleprof::SampleProfileWriter::OutputStream, llvm::sampleprof::SPMagic(), llvm::sampleprof::SPVersion(), and llvm::success.
|
overrideprotectedvirtual |
Implements llvm::sampleprof::SampleProfileWriterBinary.
Definition at line 168 of file SampleProfWriter.cpp.
References llvm::encodeULEB128(), N, llvm::sampleprof::SampleProfileWriter::OutputStream, and llvm::success.
1.8.13