|
LLVM
3.7.0
|
Sample-based profile writer (text format). More...
#include <SampleProfWriter.h>
Public Member Functions | |
| SampleProfileWriterText (StringRef F, std::error_code &EC) | |
| bool | write (StringRef FName, const FunctionSamples &S) override |
| Write samples to a text file. More... | |
| bool | write (const Module &M, StringMap< FunctionSamples > &P) |
Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter | |
| SampleProfileWriter (StringRef Filename, std::error_code &EC, sys::fs::OpenFlags Flags) | |
| virtual | ~SampleProfileWriter () |
| bool | write (const Function &F, const FunctionSamples &S) |
Write sample profiles in S for function F. More... | |
| bool | write (const Module &M, StringMap< FunctionSamples > &P) |
Write all the sample profiles for all the functions in M. More... | |
| bool | write (StringMap< FunctionSamples > &ProfileMap) |
| Write all the sample profiles in the given map of samples. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter | |
| static ErrorOr < std::unique_ptr < SampleProfileWriter > > | create (StringRef Filename, SampleProfileFormat Format) |
| Profile writer factory. More... | |
Protected Attributes inherited from llvm::sampleprof::SampleProfileWriter | |
| raw_fd_ostream | OS |
| Output stream where to emit the profile to. More... | |
Sample-based profile writer (text format).
Definition at line 84 of file SampleProfWriter.h.
|
inline |
Definition at line 86 of file SampleProfWriter.h.
|
overridevirtual |
Write samples to a text file.
Implements llvm::sampleprof::SampleProfileWriter.
Definition at line 33 of file SampleProfWriter.cpp.
References llvm::sampleprof::LineLocation::Discriminator, llvm::sampleprof::FunctionSamples::empty(), llvm::sampleprof::FunctionSamples::getBodySamples(), llvm::sampleprof::SampleRecord::getCallTargets(), llvm::sampleprof::FunctionSamples::getHeadSamples(), llvm::sampleprof::SampleRecord::getSamples(), llvm::sampleprof::FunctionSamples::getTotalSamples(), I, and llvm::sampleprof::LineLocation::LineOffset.
|
inline |
Definition at line 90 of file SampleProfWriter.h.
References llvm::sampleprof::SampleProfileWriter::write().
1.8.6