|
LLVM
8.0.1
|
Classes | |
| class | FunctionSamples |
| Representation of the samples collected for a function. More... | |
| struct | LineLocation |
| Represents the relative location of an instruction. More... | |
| class | SampleProfileReader |
| Sample-based profile reader. More... | |
| class | SampleProfileReaderBinary |
| class | SampleProfileReaderCompactBinary |
| class | SampleProfileReaderGCC |
| class | SampleProfileReaderItaniumRemapper |
| A profile data reader proxy that remaps the profile data from another sample profile data reader, by applying a provided set of equivalences between components of the symbol names in the profile. More... | |
| class | SampleProfileReaderRawBinary |
| class | SampleProfileReaderText |
| class | SampleProfileWriter |
| Sample-based profile writer. Base class. More... | |
| class | SampleProfileWriterBinary |
| Sample-based profile writer (binary format). More... | |
| class | SampleProfileWriterCompactBinary |
| class | SampleProfileWriterRawBinary |
| class | SampleProfileWriterText |
| Sample-based profile writer (text format). More... | |
| class | SampleRecord |
| Representation of a single sample record. More... | |
| class | SampleSorter |
| Sort a LocationT->SampleT map by LocationT. More... | |
Typedefs | |
| using | BodySampleMap = std::map< LineLocation, SampleRecord > |
| using | FunctionSamplesMap = std::map< std::string, FunctionSamples > |
| using | CallsiteSampleMap = std::map< LineLocation, FunctionSamplesMap > |
| using | InlineCallStack = SmallVector< FunctionSamples *, 10 > |
Enumerations | |
| enum | SampleProfileFormat { SPF_None = 0, SPF_Text = 0x1, SPF_Compact_Binary = 0x2, SPF_GCC = 0x3, SPF_Binary = 0xff } |
| enum | HistType { HIST_TYPE_INTERVAL, HIST_TYPE_POW2, HIST_TYPE_SINGLE_VALUE, HIST_TYPE_CONST_DELTA, HIST_TYPE_INDIR_CALL, HIST_TYPE_AVERAGE, HIST_TYPE_IOR, HIST_TYPE_INDIR_CALL_TOPN } |
Functions | |
| static uint64_t | SPMagic (SampleProfileFormat Format=SPF_Binary) |
| static StringRef | getRepInFormat (StringRef Name, SampleProfileFormat Format, std::string &GUIDBuf) |
| static uint64_t | SPVersion () |
| raw_ostream & | operator<< (raw_ostream &OS, const LineLocation &Loc) |
| raw_ostream & | operator<< (raw_ostream &OS, const SampleRecord &Sample) |
| raw_ostream & | operator<< (raw_ostream &OS, const FunctionSamples &FS) |
| using llvm::sampleprof::BodySampleMap = typedef std::map<LineLocation, SampleRecord> |
Definition at line 206 of file SampleProf.h.
| using llvm::sampleprof::CallsiteSampleMap = typedef std::map<LineLocation, FunctionSamplesMap> |
Definition at line 210 of file SampleProf.h.
| using llvm::sampleprof::FunctionSamplesMap = typedef std::map<std::string, FunctionSamples> |
Definition at line 209 of file SampleProf.h.
| using llvm::sampleprof::InlineCallStack = typedef SmallVector<FunctionSamples *, 10> |
Definition at line 487 of file SampleProfReader.h.
| Enumerator | |
|---|---|
| HIST_TYPE_INTERVAL | |
| HIST_TYPE_POW2 | |
| HIST_TYPE_SINGLE_VALUE | |
| HIST_TYPE_CONST_DELTA | |
| HIST_TYPE_INDIR_CALL | |
| HIST_TYPE_AVERAGE | |
| HIST_TYPE_IOR | |
| HIST_TYPE_INDIR_CALL_TOPN | |
Definition at line 491 of file SampleProfReader.h.
| Enumerator | |
|---|---|
| SPF_None | |
| SPF_Text | |
| SPF_Compact_Binary | |
| SPF_GCC | |
| SPF_Binary | |
Definition at line 82 of file SampleProf.h.
|
inlinestatic |
Definition at line 98 of file SampleProf.h.
References llvm::StringRef::empty(), llvm::GlobalValue::getGUID(), Name, SPF_Compact_Binary, and llvm::to_string().
Referenced by llvm::sampleprof::FunctionSamples::findFunctionSamplesAt(), and llvm::sampleprof::SampleProfileReader::getSamplesFor().
| raw_ostream & llvm::sampleprof::operator<< | ( | raw_ostream & | OS, |
| const LineLocation & | Loc | ||
| ) |
Definition at line 91 of file SampleProf.cpp.
References llvm::sampleprof::LineLocation::print().
| raw_ostream & llvm::sampleprof::operator<< | ( | raw_ostream & | OS, |
| const SampleRecord & | Sample | ||
| ) |
Definition at line 116 of file SampleProf.cpp.
References llvm::sampleprof::SampleRecord::print().
| raw_ostream & llvm::sampleprof::operator<< | ( | raw_ostream & | OS, |
| const FunctionSamples & | FS | ||
| ) |
Definition at line 159 of file SampleProf.cpp.
References llvm::sampleprof::FunctionSamples::print().
|
inlinestatic |
Definition at line 90 of file SampleProf.h.
References llvm::Format.
Referenced by llvm::sampleprof::SampleProfileReaderRawBinary::hasFormat(), llvm::sampleprof::SampleProfileReaderCompactBinary::hasFormat(), llvm::sampleprof::SampleProfileReaderCompactBinary::read(), llvm::sampleprof::SampleProfileWriterRawBinary::writeMagicIdent(), and llvm::sampleprof::SampleProfileWriterCompactBinary::writeMagicIdent().
|
inlinestatic |
Definition at line 107 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterRawBinary::writeMagicIdent(), and llvm::sampleprof::SampleProfileWriterCompactBinary::writeMagicIdent().
1.8.13