HPCToolkit
Prof::Metric::Mgr Class Reference

#include <Metric-Mgr.hpp>

Inheritance diagram for Prof::Metric::Mgr:
Collaboration diagram for Prof::Metric::Mgr:

Public Types

typedef std::map< std::string, Metric::ADesc * > StringToADescMap
 
typedef std::map< std::string, Metric::ADescVecStringToADescVecMap
 

Public Member Functions

 Mgr ()
 
 ~Mgr ()
 
void makeRawMetrics (const std::vector< std::string > &profileFiles, bool isUnitsEvents=true, bool doDispPercent=true)
 
void makeRawMetrics (const std::string &profileFile, bool isUnitsEvents=true, bool doDispPercent=true)
 
uint makeSummaryMetrics (bool needAllStats, bool needMultiOccurance, uint srcBegId=Mgr::npos, uint srcEndId=Mgr::npos)
 
uint makeSummaryMetricsIncr (bool needAllStats, uint srcBegId=Mgr::npos, uint srcEndId=Mgr::npos)
 
Metric::ADescmetric (uint i)
 
const Metric::ADescmetric (uint i) const
 
Metric::ADescmetric (const std::string &uniqNm)
 
const Metric::ADescmetric (const std::string &uniqNm) const
 
uint size () const
 
bool empty () const
 
bool insert (Metric::ADesc *m)
 
bool insertIf (Metric::ADesc *m)
 
Metric::ADescfindSortKey () const
 
Metric::ADescfindFirstVisible () const
 
Metric::ADescfindLastVisible () const
 
bool hasDerived () const
 
uint findGroup (const Mgr &y_mMgr) const
 
const StringToADescVecMapfnameToFMetricMap () const
 
void recomputeMaps ()
 
void computePartners ()
 
void mergePerfEventStatistics (Mgr *source)
 
void mergePerfEventStatistics_finalize (int num_profiles)
 
void zeroDBInfo () const
 
std::string toString (const char *pfx="") const
 
std::ostream & dump (std::ostream &os=std::cerr, const char *pfx="") const
 
void ddump () const
 

Static Public Attributes

static const uint npos = UINT_MAX
 

Private Member Functions

bool insertInMapsAndMakeUniqueName (Metric::ADesc *m)
 
Metric::DerivedDescmakeSummaryMetric (const std::string mDrvdTy, const Metric::ADesc *mSrc, const Metric::ADescVec &mOpands)
 
Metric::DerivedIncrDescmakeSummaryMetricIncr (const std::string mDrvdTy, const Metric::ADesc *mSrc)
 

Private Attributes

Metric::ADescVec m_metrics
 
StringToADescVecMap m_nuniqnmToMetricMap
 
StringToADescMap m_uniqnmToMetricMap
 
StringToADescVecMap m_fnameToFMetricMap
 

Detailed Description

Definition at line 76 of file Metric-Mgr.hpp.

Member Typedef Documentation

◆ StringToADescMap

typedef std::map<std::string, Metric::ADesc*> Prof::Metric::Mgr::StringToADescMap

Definition at line 80 of file Metric-Mgr.hpp.

◆ StringToADescVecMap

Definition at line 81 of file Metric-Mgr.hpp.

Constructor & Destructor Documentation

◆ Mgr()

Prof::Metric::Mgr::Mgr ( )

Definition at line 83 of file Metric-Mgr.cpp.

◆ ~Mgr()

Prof::Metric::Mgr::~Mgr ( )

Definition at line 88 of file Metric-Mgr.cpp.

Member Function Documentation

◆ computePartners()

void Prof::Metric::Mgr::computePartners ( )

Definition at line 663 of file Metric-Mgr.cpp.

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

◆ ddump()

void Prof::Metric::Mgr::ddump ( ) const

Definition at line 767 of file Metric-Mgr.cpp.

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

◆ dump()

std::ostream & Prof::Metric::Mgr::dump ( std::ostream &  os = std::cerr,
const char *  pfx = "" 
) const

Definition at line 744 of file Metric-Mgr.cpp.

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

◆ empty()

bool Prof::Metric::Mgr::empty ( ) const
inline

Definition at line 157 of file Metric-Mgr.hpp.

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

◆ findFirstVisible()

Metric::ADesc * Prof::Metric::Mgr::findFirstVisible ( ) const

Definition at line 502 of file Metric-Mgr.cpp.

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

◆ findGroup()

uint Prof::Metric::Mgr::findGroup ( const Mgr y_mMgr) const

Definition at line 586 of file Metric-Mgr.cpp.

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

◆ findLastVisible()

Metric::ADesc * Prof::Metric::Mgr::findLastVisible ( ) const

Definition at line 517 of file Metric-Mgr.cpp.

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

◆ findSortKey()

Metric::ADesc * Prof::Metric::Mgr::findSortKey ( ) const

Definition at line 487 of file Metric-Mgr.cpp.

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

◆ fnameToFMetricMap()

const StringToADescVecMap& Prof::Metric::Mgr::fnameToFMetricMap ( ) const
inline

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

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

◆ hasDerived()

bool Prof::Metric::Mgr::hasDerived ( ) const

Definition at line 532 of file Metric-Mgr.cpp.

Here is the caller graph for this function:

◆ insert()

bool Prof::Metric::Mgr::insert ( Metric::ADesc m)

Definition at line 460 of file Metric-Mgr.cpp.

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

◆ insertIf()

bool Prof::Metric::Mgr::insertIf ( Metric::ADesc m)

Definition at line 474 of file Metric-Mgr.cpp.

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

◆ insertInMapsAndMakeUniqueName()

bool Prof::Metric::Mgr::insertInMapsAndMakeUniqueName ( Metric::ADesc m)
private

Definition at line 779 of file Metric-Mgr.cpp.

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

◆ makeRawMetrics() [1/2]

void Prof::Metric::Mgr::makeRawMetrics ( const std::vector< std::string > &  profileFiles,
bool  isUnitsEvents = true,
bool  doDispPercent = true 
)

Definition at line 98 of file Metric-Mgr.cpp.

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

◆ makeRawMetrics() [2/2]

void Prof::Metric::Mgr::makeRawMetrics ( const std::string &  profileFile,
bool  isUnitsEvents = true,
bool  doDispPercent = true 
)
inline

Definition at line 97 of file Metric-Mgr.hpp.

Here is the call graph for this function:

◆ makeSummaryMetric()

Metric::DerivedDesc * Prof::Metric::Mgr::makeSummaryMetric ( const std::string  mDrvdTy,
const Metric::ADesc mSrc,
const Metric::ADescVec mOpands 
)
private

Definition at line 272 of file Metric-Mgr.cpp.

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

◆ makeSummaryMetricIncr()

Metric::DerivedIncrDesc * Prof::Metric::Mgr::makeSummaryMetricIncr ( const std::string  mDrvdTy,
const Metric::ADesc mSrc 
)
private

Definition at line 365 of file Metric-Mgr.cpp.

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

◆ makeSummaryMetrics()

uint Prof::Metric::Mgr::makeSummaryMetrics ( bool  needAllStats,
bool  needMultiOccurance,
uint  srcBegId = Mgr::npos,
uint  srcEndId = Mgr::npos 
)

Definition at line 135 of file Metric-Mgr.cpp.

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

◆ makeSummaryMetricsIncr()

uint Prof::Metric::Mgr::makeSummaryMetricsIncr ( bool  needAllStats,
uint  srcBegId = Mgr::npos,
uint  srcEndId = Mgr::npos 
)

Definition at line 235 of file Metric-Mgr.cpp.

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

◆ mergePerfEventStatistics()

void Prof::Metric::Mgr::mergePerfEventStatistics ( Mgr source)

Definition at line 203 of file Metric-Mgr.cpp.

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

◆ mergePerfEventStatistics_finalize()

void Prof::Metric::Mgr::mergePerfEventStatistics_finalize ( int  num_profiles)

Definition at line 222 of file Metric-Mgr.cpp.

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

◆ metric() [1/4]

Metric::ADesc* Prof::Metric::Mgr::metric ( uint  i)
inline

Definition at line 131 of file Metric-Mgr.hpp.

Here is the caller graph for this function:

◆ metric() [2/4]

const Metric::ADesc* Prof::Metric::Mgr::metric ( uint  i) const
inline

Definition at line 135 of file Metric-Mgr.hpp.

◆ metric() [3/4]

Metric::ADesc* Prof::Metric::Mgr::metric ( const std::string &  uniqNm)
inline

Definition at line 139 of file Metric-Mgr.hpp.

◆ metric() [4/4]

const Metric::ADesc* Prof::Metric::Mgr::metric ( const std::string &  uniqNm) const
inline

Definition at line 146 of file Metric-Mgr.hpp.

◆ recomputeMaps()

void Prof::Metric::Mgr::recomputeMaps ( )

Definition at line 648 of file Metric-Mgr.cpp.

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

◆ size()

uint Prof::Metric::Mgr::size ( ) const
inline

Definition at line 153 of file Metric-Mgr.hpp.

Here is the caller graph for this function:

◆ toString()

string Prof::Metric::Mgr::toString ( const char *  pfx = "") const

Definition at line 735 of file Metric-Mgr.cpp.

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

◆ zeroDBInfo()

void Prof::Metric::Mgr::zeroDBInfo ( ) const

Definition at line 721 of file Metric-Mgr.cpp.

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

Member Data Documentation

◆ m_fnameToFMetricMap

StringToADescVecMap Prof::Metric::Mgr::m_fnameToFMetricMap
private

Definition at line 283 of file Metric-Mgr.hpp.

◆ m_metrics

Metric::ADescVec Prof::Metric::Mgr::m_metrics
private

Definition at line 273 of file Metric-Mgr.hpp.

◆ m_nuniqnmToMetricMap

StringToADescVecMap Prof::Metric::Mgr::m_nuniqnmToMetricMap
private

Definition at line 277 of file Metric-Mgr.hpp.

◆ m_uniqnmToMetricMap

StringToADescMap Prof::Metric::Mgr::m_uniqnmToMetricMap
private

Definition at line 280 of file Metric-Mgr.hpp.

◆ npos

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

Definition at line 202 of file Metric-Mgr.hpp.


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