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

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

#include <SampleProfWriter.h>

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

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...
 

Detailed Description

Sample-based profile writer (text format).

Definition at line 84 of file SampleProfWriter.h.

Constructor & Destructor Documentation

llvm::sampleprof::SampleProfileWriterText::SampleProfileWriterText ( StringRef  F,
std::error_code &  EC 
)
inline

Definition at line 86 of file SampleProfWriter.h.

Member Function Documentation

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

Definition at line 90 of file SampleProfWriter.h.

References llvm::sampleprof::SampleProfileWriter::write().


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