LLVM API Documentation
Representation of the samples collected for a function. More...
#include <SampleProfReader.h>
Public Member Functions | |
| FunctionSamples () | |
| void | print (raw_ostream &OS) |
Print the samples collected for a function on stream OS. | |
| void | addTotalSamples (unsigned Num) |
| void | addHeadSamples (unsigned Num) |
| void | addBodySamples (int LineOffset, unsigned Discriminator, unsigned Num) |
| unsigned | samplesAt (int LineOffset, unsigned Discriminator) |
Return the number of samples collected at the given location. Each location is specified by LineOffset and Discriminator. | |
| bool | empty () |
Representation of the samples collected for a function.
This data structure contains all the collected samples for the body of a function. Each sample corresponds to a LineLocation instance within the body of the function.
Definition at line 80 of file SampleProfReader.h.
| sampleprof::FunctionSamples::FunctionSamples | ( | ) | [inline] |
Definition at line 82 of file SampleProfReader.h.
| void sampleprof::FunctionSamples::addBodySamples | ( | int | LineOffset, |
| unsigned | Discriminator, | ||
| unsigned | Num | ||
| ) | [inline] |
Definition at line 87 of file SampleProfReader.h.
Referenced by sampleprof::SampleProfileReader::loadText().
| void sampleprof::FunctionSamples::addHeadSamples | ( | unsigned | Num | ) | [inline] |
Definition at line 86 of file SampleProfReader.h.
Referenced by sampleprof::SampleProfileReader::loadText().
| void sampleprof::FunctionSamples::addTotalSamples | ( | unsigned | Num | ) | [inline] |
Definition at line 85 of file SampleProfReader.h.
Referenced by sampleprof::SampleProfileReader::loadText().
| bool sampleprof::FunctionSamples::empty | ( | ) | [inline] |
Definition at line 98 of file SampleProfReader.h.
| void FunctionSamples::print | ( | raw_ostream & | OS | ) |
Print the samples collected for a function on stream OS.
| OS | Stream to emit the output to. |
Definition at line 110 of file SampleProfReader.cpp.
| unsigned sampleprof::FunctionSamples::samplesAt | ( | int | LineOffset, |
| unsigned | Discriminator | ||
| ) | [inline] |
Return the number of samples collected at the given location. Each location is specified by LineOffset and Discriminator.
Definition at line 94 of file SampleProfReader.h.