LLVM  3.7.0
Public Member Functions | List of all members
llvm::sampleprof::SampleProfileWriterBinary Class Reference

Sample-based profile writer (binary format). More...

#include <SampleProfWriter.h>

Inheritance diagram for llvm::sampleprof::SampleProfileWriterBinary:
[legend]
Collaboration diagram for llvm::sampleprof::SampleProfileWriterBinary:
[legend]

Public Member Functions

 SampleProfileWriterBinary (StringRef F, std::error_code &EC)
 
bool write (StringRef F, const FunctionSamples &S) override
 Write samples to a binary 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...
 

Detailed Description

Sample-based profile writer (binary format).

Definition at line 96 of file SampleProfWriter.h.

Constructor & Destructor Documentation

SampleProfileWriterBinary::SampleProfileWriterBinary ( StringRef  F,
std::error_code &  EC 
)

Member Function Documentation

bool SampleProfileWriterBinary::write ( StringRef  FName,
const FunctionSamples S 
)
overridevirtual
bool llvm::sampleprof::SampleProfileWriterBinary::write ( const Module M,
StringMap< FunctionSamples > &  P 
)
inline

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