HPCToolkit
PCProfile Class Reference

#include <PCProfile.hpp>

Inheritance diagram for PCProfile:
Collaboration diagram for PCProfile:

Public Member Functions

 PCProfile (ISA *isa_, unsigned int sz=16)
 
virtual ~PCProfile ()
 
const std::string & GetProfiledFile () const
 
const std::string & GetHdrInfo () const
 
void SetProfiledFile (const char *s)
 
void SetProfiledFile (const std::string &s)
 
void SetHdrInfo (const char *s)
 
void SetHdrInfo (const std::string &s)
 
VMA GetTxtStart () const
 
VMA GetTxtSz () const
 
const PCProfileMetricGetMetric (unsigned int i) const
 
void SetMetric (unsigned int i, const PCProfileMetric *m)
 
void AddMetric (const PCProfileMetric *m)
 
unsigned int GetNumMetrics () const
 
void SetNumMetrics (unsigned int sz)
 
unsigned int GetNumPCs ()
 
void AddPC (VMA pc, ushort opIndex)
 
void dump (std::ostream &o=std::cerr)
 
void ddump ()
 
const PCProfileMetricIndex (unsigned int i) const
 
const PCProfileMetricoperator[] (unsigned int i) const
 
PCProfileMetric *& operator[] (unsigned int i)
 
void Assign (unsigned int i, const PCProfileMetric *m)
 
void Add (const PCProfileMetric *m)
 
unsigned int GetSz () const
 
void SetSz (unsigned int sz)
 
void Clear ()
 
ISAGetISA () const
 
int DataExists (VMA pc, ushort opIndex) const
 
PCProfileMetricSetFilter (MetricFilter *filter) const
 

Private Member Functions

 PCProfile (const PCProfile &p)
 
PCProfileoperator= (const PCProfile &p)
 

Private Attributes

std::string profiledFile
 
std::string fHdrInfo
 
PCVec pcVec
 

Friends

class PCProfile_PCIterator
 

Detailed Description

Definition at line 224 of file PCProfile.hpp.

Constructor & Destructor Documentation

◆ PCProfile() [1/2]

PCProfile::PCProfile ( ISA isa_,
unsigned int  sz = 16 
)

Definition at line 141 of file PCProfile.cpp.

◆ ~PCProfile()

PCProfile::~PCProfile ( )
virtual

Definition at line 147 of file PCProfile.cpp.

◆ PCProfile() [2/2]

PCProfile::PCProfile ( const PCProfile p)
private

Member Function Documentation

◆ Add()

void PCProfileMetricSet::Add ( const PCProfileMetric m)
inlineinherited

Definition at line 124 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ AddMetric()

void PCProfile::AddMetric ( const PCProfileMetric m)
inline

Definition at line 250 of file PCProfile.hpp.

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

◆ AddPC()

void PCProfile::AddPC ( VMA  pc,
ushort  opIndex 
)

Definition at line 153 of file PCProfile.cpp.

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

◆ Assign()

void PCProfileMetricSet::Assign ( unsigned int  i,
const PCProfileMetric m 
)
inlineinherited

Definition at line 119 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ Clear()

void PCProfileMetricSet::Clear ( )
inlineinherited

Definition at line 131 of file PCProfile.hpp.

◆ DataExists()

int PCProfileMetricSet::DataExists ( VMA  pc,
ushort  opIndex 
) const
inherited

Definition at line 95 of file PCProfile.cpp.

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

◆ ddump()

void PCProfile::ddump ( )

Definition at line 172 of file PCProfile.cpp.

Here is the call graph for this function:

◆ dump()

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

Definition at line 163 of file PCProfile.cpp.

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

◆ Filter()

PCProfileMetricSet * PCProfileMetricSet::Filter ( MetricFilter filter) const
inherited

Definition at line 107 of file PCProfile.cpp.

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

◆ GetHdrInfo()

const std::string& PCProfile::GetHdrInfo ( ) const
inline

Definition at line 233 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ GetISA()

ISA* PCProfileMetricSet::GetISA ( ) const
inlineinherited

Definition at line 136 of file PCProfile.hpp.

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

◆ GetMetric()

const PCProfileMetric* PCProfile::GetMetric ( unsigned int  i) const
inline

Definition at line 248 of file PCProfile.hpp.

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

◆ GetNumMetrics()

unsigned int PCProfile::GetNumMetrics ( ) const
inline

Definition at line 251 of file PCProfile.hpp.

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

◆ GetNumPCs()

unsigned int PCProfile::GetNumPCs ( )
inline

Definition at line 255 of file PCProfile.hpp.

Here is the call graph for this function:

◆ GetProfiledFile()

const std::string& PCProfile::GetProfiledFile ( ) const
inline

Definition at line 232 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ GetSz()

unsigned int PCProfileMetricSet::GetSz ( ) const
inlineinherited

Definition at line 128 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ GetTxtStart()

VMA PCProfile::GetTxtStart ( ) const
inline

Definition at line 244 of file PCProfile.hpp.

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

◆ GetTxtSz()

VMA PCProfile::GetTxtSz ( ) const
inline

Definition at line 245 of file PCProfile.hpp.

Here is the call graph for this function:

◆ Index()

const PCProfileMetric* PCProfileMetricSet::Index ( unsigned int  i) const
inlineinherited

Definition at line 116 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ operator=()

PCProfile& PCProfile::operator= ( const PCProfile p)
inlineprivate

Definition at line 264 of file PCProfile.hpp.

◆ operator[]() [1/2]

const PCProfileMetric* PCProfileMetricSet::operator[] ( unsigned int  i) const
inlineinherited

Definition at line 117 of file PCProfile.hpp.

◆ operator[]() [2/2]

PCProfileMetric*& PCProfileMetricSet::operator[] ( unsigned int  i)
inlineinherited

Definition at line 122 of file PCProfile.hpp.

◆ SetHdrInfo() [1/2]

void PCProfile::SetHdrInfo ( const char *  s)
inline

Definition at line 238 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ SetHdrInfo() [2/2]

void PCProfile::SetHdrInfo ( const std::string &  s)
inline

Definition at line 239 of file PCProfile.hpp.

◆ SetMetric()

void PCProfile::SetMetric ( unsigned int  i,
const PCProfileMetric m 
)
inline

Definition at line 249 of file PCProfile.hpp.

Here is the call graph for this function:

◆ SetNumMetrics()

void PCProfile::SetNumMetrics ( unsigned int  sz)
inline

Definition at line 252 of file PCProfile.hpp.

Here is the call graph for this function:

◆ SetProfiledFile() [1/2]

void PCProfile::SetProfiledFile ( const char *  s)
inline

Definition at line 235 of file PCProfile.hpp.

Here is the caller graph for this function:

◆ SetProfiledFile() [2/2]

void PCProfile::SetProfiledFile ( const std::string &  s)
inline

Definition at line 236 of file PCProfile.hpp.

◆ SetSz()

void PCProfileMetricSet::SetSz ( unsigned int  sz)
inlineinherited

Definition at line 129 of file PCProfile.hpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ PCProfile_PCIterator

friend class PCProfile_PCIterator
friend

Definition at line 266 of file PCProfile.hpp.

Member Data Documentation

◆ fHdrInfo

std::string PCProfile::fHdrInfo
private

Definition at line 271 of file PCProfile.hpp.

◆ pcVec

PCVec PCProfile::pcVec
private

Definition at line 273 of file PCProfile.hpp.

◆ profiledFile

std::string PCProfile::profiledFile
private

Definition at line 270 of file PCProfile.hpp.


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