HPCToolkit
Prof::Metric::IData Class Reference

#include <Metric-IData.hpp>

Inheritance diagram for Prof::Metric::IData:

Public Types

typedef std::vector< hpcrun_metricVal_tMetricVec
 

Public Member Functions

 IData (size_t size=0)
 
virtual ~IData ()
 
 IData (const IData &x)
 
IDataoperator= (const IData &x)
 
bool hasMetrics (uint mBegId=Metric::IData::npos, uint mEndId=Metric::IData::npos) const
 
bool hasMetric (size_t mId) const
 
bool hasMetricSlow (size_t mId) const
 
double metric (size_t mId) const
 
double & metric (size_t mId)
 
hpcrun_metricVal_tmetricObject (size_t mId)
 
double demandMetric (size_t mId, size_t size=0) const
 
double & demandMetric (size_t mId, size_t size=0)
 
void zeroMetrics (uint mBegId, uint mEndId)
 
void clearMetrics ()
 
void ensureMetricsSize (size_t size) const
 
void insertMetricsBefore (size_t numMetrics)
 
uint numMetrics () const
 
std::string toStringMetrics (int oFlags=0, const char *pfx="") const
 
std::ostream & writeMetricsXML (std::ostream &os, const Mgr *metricMgr, uint mBegId=Metric::IData::npos, uint mEndId=Metric::IData::npos, int oFlags=0, const char *pfx="") const
 
std::ostream & dumpMetrics (std::ostream &os=std::cerr, int oFlags=0, const char *pfx="") const
 
void ddumpMetrics () const
 

Static Public Attributes

static const uint npos = UINT_MAX
 

Private Attributes

MetricVec m_metrics
 

Detailed Description

Definition at line 105 of file Metric-IData.hpp.

Member Typedef Documentation

◆ MetricVec

Definition at line 107 of file Metric-IData.hpp.

Constructor & Destructor Documentation

◆ IData() [1/2]

Prof::Metric::IData::IData ( size_t  size = 0)
inline

Definition at line 113 of file Metric-IData.hpp.

Here is the call graph for this function:

◆ ~IData()

virtual Prof::Metric::IData::~IData ( )
inlinevirtual

Definition at line 118 of file Metric-IData.hpp.

◆ IData() [2/2]

Prof::Metric::IData::IData ( const IData x)
inline

Definition at line 122 of file Metric-IData.hpp.

Member Function Documentation

◆ clearMetrics()

void Prof::Metric::IData::clearMetrics ( )
inline

Definition at line 210 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ ddumpMetrics()

void Prof::Metric::IData::ddumpMetrics ( ) const

Definition at line 155 of file Metric-IData.cpp.

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

◆ demandMetric() [1/2]

double Prof::Metric::IData::demandMetric ( size_t  mId,
size_t  size = 0 
) const
inline

Definition at line 182 of file Metric-IData.hpp.

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

◆ demandMetric() [2/2]

double& Prof::Metric::IData::demandMetric ( size_t  mId,
size_t  size = 0 
)
inline

Definition at line 190 of file Metric-IData.hpp.

Here is the call graph for this function:

◆ dumpMetrics()

std::ostream & Prof::Metric::IData::dumpMetrics ( std::ostream &  os = std::cerr,
int  oFlags = 0,
const char *  pfx = "" 
) const

Definition at line 147 of file Metric-IData.cpp.

Here is the caller graph for this function:

◆ ensureMetricsSize()

void Prof::Metric::IData::ensureMetricsSize ( size_t  size) const
inline

Definition at line 217 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ hasMetric()

bool Prof::Metric::IData::hasMetric ( size_t  mId) const
inline

Definition at line 158 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ hasMetrics()

bool Prof::Metric::IData::hasMetrics ( uint  mBegId = Metric::IData::npos,
uint  mEndId = Metric::IData::npos 
) const
inline

Definition at line 141 of file Metric-IData.hpp.

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

◆ hasMetricSlow()

bool Prof::Metric::IData::hasMetricSlow ( size_t  mId) const
inline

Definition at line 162 of file Metric-IData.hpp.

Here is the call graph for this function:

◆ insertMetricsBefore()

void Prof::Metric::IData::insertMetricsBefore ( size_t  numMetrics)
inline

Definition at line 226 of file Metric-IData.hpp.

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

◆ metric() [1/2]

double Prof::Metric::IData::metric ( size_t  mId) const
inline

Definition at line 167 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ metric() [2/2]

double& Prof::Metric::IData::metric ( size_t  mId)
inline

Definition at line 171 of file Metric-IData.hpp.

◆ metricObject()

hpcrun_metricVal_t& Prof::Metric::IData::metricObject ( size_t  mId)
inline

Definition at line 176 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ numMetrics()

uint Prof::Metric::IData::numMetrics ( ) const
inline

Definition at line 233 of file Metric-IData.hpp.

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

◆ operator=()

IData& Prof::Metric::IData::operator= ( const IData x)
inline

Definition at line 128 of file Metric-IData.hpp.

Here is the caller graph for this function:

◆ toStringMetrics()

std::string Prof::Metric::IData::toStringMetrics ( int  oFlags = 0,
const char *  pfx = "" 
) const

Definition at line 96 of file Metric-IData.cpp.

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

◆ writeMetricsXML()

std::ostream & Prof::Metric::IData::writeMetricsXML ( std::ostream &  os,
const Mgr metricMgr,
uint  mBegId = Metric::IData::npos,
uint  mEndId = Metric::IData::npos,
int  oFlags = 0,
const char *  pfx = "" 
) const

Definition at line 105 of file Metric-IData.cpp.

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

◆ zeroMetrics()

void Prof::Metric::IData::zeroMetrics ( uint  mBegId,
uint  mEndId 
)
inline

Definition at line 201 of file Metric-IData.hpp.

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

Member Data Documentation

◆ m_metrics

MetricVec Prof::Metric::IData::m_metrics
mutableprivate

Definition at line 263 of file Metric-IData.hpp.

◆ npos

const uint Prof::Metric::IData::npos = UINT_MAX
static

Definition at line 138 of file Metric-IData.hpp.


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