HPCToolkit
PCProfileMetric Class Reference

#include <PCProfileMetric.hpp>

Inheritance diagram for PCProfileMetric:
Collaboration diagram for PCProfileMetric:

Public Member Functions

 PCProfileMetric (ISA *isa_)
 
virtual ~PCProfileMetric ()
 
const std::string & GetName () const
 
const std::string & GetDescription () const
 
PCProfileDatum GetTotalCount () const
 
ulong GetPeriod () const
 
VMA GetTxtStart () const
 
VMA GetTxtSz () const
 
void SetName (const char *s)
 
void SetName (const std::string &s)
 
void SetDescription (const char *s)
 
void SetDescription (const std::string &s)
 
void SetTotalCount (PCProfileDatum d)
 
void SetPeriod (ulong p)
 
void SetTxtStart (VMA a)
 
void SetTxtSz (VMA a)
 
unsigned int GetSz () const
 
ISAGetISA () const
 
PCProfileDatum Find (VMA pc, ushort opIndex) const
 
void Insert (VMA pc, ushort opIndex, PCProfileDatum &d)
 
PCSetFilter (PCFilter *filter) const
 
void dump (std::ostream &o=std::cerr)
 
void ddump ()
 

Private Types

typedef std::map< VMA, PCProfileDatumPCToPCProfileDatumMap
 
typedef PCToPCProfileDatumMap::value_type PCToPCProfileDatumMapVal
 
typedef PCToPCProfileDatumMap::iterator PCToPCProfileDatumMapIt
 
typedef PCToPCProfileDatumMap::const_iterator PCToPCProfileDatumMapCIt
 

Private Member Functions

 PCProfileMetric (const PCProfileMetric &m)
 
PCProfileMetricoperator= (const PCProfileMetric &m)
 

Private Attributes

std::string name
 
std::string description
 
PCProfileDatum total
 
ulong period
 
VMA txtStart
 
VMA txtSz
 
ISAisa
 
PCToPCProfileDatumMap map
 

Friends

class PCProfileMetric_MapIterator
 

Detailed Description

Definition at line 109 of file PCProfileMetric.hpp.

Member Typedef Documentation

◆ PCToPCProfileDatumMap

Definition at line 112 of file PCProfileMetric.hpp.

◆ PCToPCProfileDatumMapCIt

typedef PCToPCProfileDatumMap::const_iterator PCProfileMetric::PCToPCProfileDatumMapCIt
private

Definition at line 115 of file PCProfileMetric.hpp.

◆ PCToPCProfileDatumMapIt

typedef PCToPCProfileDatumMap::iterator PCProfileMetric::PCToPCProfileDatumMapIt
private

Definition at line 114 of file PCProfileMetric.hpp.

◆ PCToPCProfileDatumMapVal

typedef PCToPCProfileDatumMap::value_type PCProfileMetric::PCToPCProfileDatumMapVal
private

Definition at line 113 of file PCProfileMetric.hpp.

Constructor & Destructor Documentation

◆ PCProfileMetric() [1/2]

PCProfileMetric::PCProfileMetric ( ISA isa_)

Definition at line 80 of file PCProfileMetric.cpp.

Here is the call graph for this function:

◆ ~PCProfileMetric()

PCProfileMetric::~PCProfileMetric ( )
virtual

Definition at line 87 of file PCProfileMetric.cpp.

Here is the call graph for this function:

◆ PCProfileMetric() [2/2]

PCProfileMetric::PCProfileMetric ( const PCProfileMetric m)
inlineprivate

Definition at line 182 of file PCProfileMetric.hpp.

Member Function Documentation

◆ ddump()

void PCProfileMetric::ddump ( )

Definition at line 115 of file PCProfileMetric.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump()

void PCProfileMetric::dump ( std::ostream &  o = std::cerr)

Definition at line 93 of file PCProfileMetric.cpp.

Here is the caller graph for this function:

◆ Filter()

PCSet* PCProfileMetric::Filter ( PCFilter filter) const
Here is the caller graph for this function:

◆ Find()

PCProfileDatum PCProfileMetric::Find ( VMA  pc,
ushort  opIndex 
) const
inline

Definition at line 159 of file PCProfileMetric.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDescription()

const std::string& PCProfileMetric::GetDescription ( ) const
inline

Definition at line 127 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ GetISA()

ISA* PCProfileMetric::GetISA ( ) const
inline

Definition at line 151 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ GetName()

const std::string& PCProfileMetric::GetName ( ) const
inline

Definition at line 126 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ GetPeriod()

ulong PCProfileMetric::GetPeriod ( ) const
inline

Definition at line 130 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ GetSz()

unsigned int PCProfileMetric::GetSz ( ) const
inline

Definition at line 147 of file PCProfileMetric.hpp.

◆ GetTotalCount()

PCProfileDatum PCProfileMetric::GetTotalCount ( ) const
inline

Definition at line 129 of file PCProfileMetric.hpp.

◆ GetTxtStart()

VMA PCProfileMetric::GetTxtStart ( ) const
inline

Definition at line 131 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ GetTxtSz()

VMA PCProfileMetric::GetTxtSz ( ) const
inline

Definition at line 132 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ Insert()

void PCProfileMetric::Insert ( VMA  pc,
ushort  opIndex,
PCProfileDatum d 
)
inline

Definition at line 165 of file PCProfileMetric.hpp.

Here is the call graph for this function:

◆ operator=()

PCProfileMetric& PCProfileMetric::operator= ( const PCProfileMetric m)
inlineprivate

Definition at line 183 of file PCProfileMetric.hpp.

◆ SetDescription() [1/2]

void PCProfileMetric::SetDescription ( const char *  s)
inline

Definition at line 137 of file PCProfileMetric.hpp.

◆ SetDescription() [2/2]

void PCProfileMetric::SetDescription ( const std::string &  s)
inline

Definition at line 138 of file PCProfileMetric.hpp.

◆ SetName() [1/2]

void PCProfileMetric::SetName ( const char *  s)
inline

Definition at line 134 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ SetName() [2/2]

void PCProfileMetric::SetName ( const std::string &  s)
inline

Definition at line 135 of file PCProfileMetric.hpp.

◆ SetPeriod()

void PCProfileMetric::SetPeriod ( ulong  p)
inline

Definition at line 141 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ SetTotalCount()

void PCProfileMetric::SetTotalCount ( PCProfileDatum  d)
inline

Definition at line 140 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ SetTxtStart()

void PCProfileMetric::SetTxtStart ( VMA  a)
inline

Definition at line 142 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

◆ SetTxtSz()

void PCProfileMetric::SetTxtSz ( VMA  a)
inline

Definition at line 143 of file PCProfileMetric.hpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ PCProfileMetric_MapIterator

friend class PCProfileMetric_MapIterator
friend

Definition at line 185 of file PCProfileMetric.hpp.

Member Data Documentation

◆ description

std::string PCProfileMetric::description
private

Definition at line 190 of file PCProfileMetric.hpp.

◆ isa

ISA* PCProfileMetric::isa
private

Definition at line 197 of file PCProfileMetric.hpp.

◆ map

PCToPCProfileDatumMap PCProfileMetric::map
private

Definition at line 198 of file PCProfileMetric.hpp.

◆ name

std::string PCProfileMetric::name
private

Definition at line 189 of file PCProfileMetric.hpp.

◆ period

ulong PCProfileMetric::period
private

Definition at line 193 of file PCProfileMetric.hpp.

◆ total

PCProfileDatum PCProfileMetric::total
private

Definition at line 192 of file PCProfileMetric.hpp.

◆ txtStart

VMA PCProfileMetric::txtStart
private

Definition at line 194 of file PCProfileMetric.hpp.

◆ txtSz

VMA PCProfileMetric::txtSz
private

Definition at line 195 of file PCProfileMetric.hpp.


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