LLVM API Documentation

Public Member Functions
sampleprof::FunctionSamples Class Reference

Representation of the samples collected for a function. More...

#include <SampleProfReader.h>

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 82 of file SampleProfReader.h.


Member Function Documentation

void sampleprof::FunctionSamples::addBodySamples ( int  LineOffset,
unsigned  Discriminator,
unsigned  Num 
) [inline]

Definition at line 87 of file SampleProfReader.h.

Referenced by sampleprof::SampleProfileReader::loadText().

Definition at line 86 of file SampleProfReader.h.

Referenced by sampleprof::SampleProfileReader::loadText().

Definition at line 85 of file SampleProfReader.h.

Referenced by sampleprof::SampleProfileReader::loadText().

Definition at line 98 of file SampleProfReader.h.

Print the samples collected for a function on stream OS.

Parameters:
OSStream 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.


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