|
HPCToolkit
|
#include <CCT-Tree.hpp>


Public Types | |
| enum | ANodeTy { TyRoot = 0, TyProcFrm, TyProc, TyLoop, TyCall, TyStmt, TyANY, TyNUMBER } |
| typedef std::vector< ANode * > | Vec |
| typedef std::vector< hpcrun_metricVal_t > | MetricVec |
Public Member Functions | |
| Stmt (ANode *parent, uint cpId) | |
| Stmt (ANode *parent, uint cpId, hpcrun_fmt_cct_node_t node_fmt, LoadMap::LMId_t lmId, VMA ip, ushort opIdx, lush_lip_t *lip, const Metric::IData &metrics) | |
| virtual | ~Stmt () |
| Stmt & | operator= (const Stmt &x) |
| void | id_node_alloc (uint id) |
| uint | id_node_alloc () |
| void | start_address (uint64_t address) |
| uint64_t | start_address () |
| void | node_alloc (ANode *node) |
| ANode * | node_alloc () |
| virtual std::string | toStringMe (uint oFlags=0) const |
| uint | cpId () const |
| void | cpId (uint id) |
| lush_assoc_info_t | assocInfo () const |
| void | assocInfo (lush_assoc_info_t x) |
| lush_assoc_t | assoc () const |
| LoadMap::LMId_t | lmId () const |
| void | lmId (LoadMap::LMId_t x) |
| LoadMap::LMId_t | lmId_real () const |
| void | lmId_real (LoadMap::LMId_t x) |
| virtual VMA | lmIP () const |
| void | lmIP (VMA lmIP, ushort opIdx) |
| VMA | lmIP_real () const |
| ushort | opIndex () const |
| lush_lip_t * | lip () const |
| void | lip (const lush_lip_t *lip) |
| bool | isValid_lip () const |
| bool | isPrimarySynthRoot () const |
| bool | isSecondarySynthRoot () const |
| virtual MergeEffect | mergeMe (const ANode &y, MergeContext *mrgCtxt=NULL, uint metricBegIdx=0, bool mayConflict=true) |
| std::string | assocInfo_str () const |
| std::string | lip_str () const |
| std::string | nameDyn () const |
| void | writeDyn (std::ostream &os, uint oFlags=0, const char *prefix="") const |
| ANodeTy | type () const |
| uint | id () const |
| void | id (uint id) |
| virtual const std::string & | name () const |
| Struct::ACodeNode * | structure () const |
| void | structure (const Struct::ACodeNode *strct) |
| uint | structureId () const |
| SrcFile::ln | begLine () const |
| SrcFile::ln | endLine () const |
| void | hpcrun_node_type (uint16_t type) |
| uint16_t | hpcrun_node_type () const |
| ANode * | parent () const |
| ANode * | firstChild () const |
| ANode * | lastChild () const |
| ANode * | nextSibling () const |
| ANode * | prevSibling () const |
| ANode * | ancestor (ANodeTy tp) const |
| Root * | ancestorRoot () const |
| ProcFrm * | ancestorProcFrm () const |
| Proc * | ancestorProc () const |
| Loop * | ancestorLoop () const |
| Call * | ancestorCall () const |
| Stmt * | ancestorStmt () const |
| void | zeroMetricsDeep (uint mBegId, uint mEndId) |
| void | aggregateMetricsIncl (uint mBegId, uint mEndId) |
| void | aggregateMetricsIncl (const VMAIntervalSet &ivalset) |
| void | aggregateMetricsIncl (uint mBegId) |
| void | aggregateMetricsExcl (uint mBegId, uint mEndId) |
| void | aggregateMetricsExcl (const VMAIntervalSet &ivalset) |
| void | aggregateMetricsExcl (uint mBegId) |
| void | computeMetrics (const Metric::Mgr &mMgr, uint mBegId, uint mEndId, bool doFinal) |
| void | computeMetricsMe (const Metric::Mgr &mMgr, uint mBegId, uint mEndId, bool doFinal) |
| void | computeMetricsIncr (const Metric::Mgr &mMgr, uint mBegId, uint mEndId, Metric::AExprIncr::FnTy fn) |
| void | computeMetricsIncrMe (const Metric::Mgr &mMgr, uint mBegId, uint mEndId, Metric::AExprIncr::FnTy fn) |
| void | pruneByMetrics (const Metric::Mgr &mMgr, const VMAIntervalSet &ivalset, const ANode *root, double thresholdPct, uint8_t *prunedNodes=NULL) |
| void | pruneChildrenByNodeId (const uint8_t *prunedNodes) |
| std::list< MergeEffect > * | mergeDeep (ANode *y, uint x_numMetrics, MergeContext &mrgCtxt, uint oFlag=0) |
| MergeEffect | merge (ANode *y) |
| CCT::ADynNode * | findDynChild (const ADynNode &y_dyn) |
| uint | makeDensePreorderIds (uint nextId) |
| virtual std::string | toString (const Metric::Mgr *metricMgr, uint oFlags=0, const char *pfx="") const |
| virtual std::string | toString (uint oFlags=0, const char *pfx="") const |
| std::ostream & | writeXML (std::ostream &os, const Metric::Mgr *metricMgr, uint metricBeg=Metric::IData::npos, uint metricEnd=Metric::IData::npos, uint oFlags=0, const char *pfx="") const |
| std::ostream & | writeXML_path (std::ostream &os, const Metric::Mgr *metricMgr, uint metricBeg=Metric::IData::npos, uint metricEnd=Metric::IData::npos, uint oFlags=0, const char *pfx="") const |
| std::ostream & | dump (const Metric::Mgr *metricMgr, std::ostream &os=std::cerr, uint oFlags=0, const char *pfx="") const |
| void | adump (const Metric::Mgr *metricMgr) const |
| void | ddump (const Metric::Mgr *metricMgr) const |
| void | ddumpMe () const |
| virtual std::string | codeName () const |
| void | link (NonUniformDegreeTreeNode *parent) |
| void | linkBefore (NonUniformDegreeTreeNode *sibling) |
| void | linkAfter (NonUniformDegreeTreeNode *sibling) |
| void | unlink () |
| uint | ancestorCount () const |
| uint | childCount () const |
| bool | isLeaf () const |
| uint | maxDepth () |
| uint | maxDepth (uint parentDepth) |
| NonUniformDegreeTreeNode * | Parent () const |
| NonUniformDegreeTreeNode * | NextSibling () const |
| NonUniformDegreeTreeNode * | PrevSibling () const |
| NonUniformDegreeTreeNode * | FirstChild () const |
| NonUniformDegreeTreeNode * | LastChild () const |
| 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_t & | metricObject (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 Member Functions | |
| static lush_lip_t * | clone_lip (const lush_lip_t *x) |
| static Struct::ACodeNode * | ancestorIfNotProc (Struct::ACodeNode *n) |
| static bool | isMergable (const ADynNode &x, const ADynNode &y) |
| static bool | hasMergeEffects (const ADynNode &x, const ADynNode &y) |
| static const std::string & | ANodeTyToName (ANodeTy tp) |
| static ANodeTy | IntToANodeType (long i) |
| static void | pruneByNodeId (ANode *&x, const uint8_t *prunedNodes) |
| static bool | deleteChaff (ANode *x, uint8_t *deletedNodes=NULL) |
Static Public Attributes | |
| static const uint | npos = UINT_MAX |
Protected Member Functions | |
| bool | writeXML_pre (std::ostream &os, const Metric::Mgr *metricMgr, uint metricBeg=Metric::IData::npos, uint metricEnd=Metric::IData::npos, uint oFlags=0, const char *pfx="") const |
| void | writeXML_post (std::ostream &os, uint oFlags=0, const char *pfx="") const |
| MergeEffectList * | mergeDeep_fixInsert (int newMetrics, MergeContext &mrgCtxt) |
| void | zeroLinks () |
Protected Attributes | |
| ANodeTy | m_type |
| uint16_t | m_hpcrun_type |
| uint | m_id |
| Struct::ACodeNode * | m_strct |
| NonUniformDegreeTreeNode * | m_parent |
| NonUniformDegreeTreeNode * | m_children |
| NonUniformDegreeTreeNode * | m_next_sibling |
| NonUniformDegreeTreeNode * | m_prev_sibling |
| uint | m_child_count |
Private Attributes | |
| uint | m_id_node_alloc |
| ANode * | m_node_alloc |
| uint64_t | m_start_address |
Definition at line 1325 of file CCT-Tree.hpp.
|
inherited |
Definition at line 107 of file Metric-IData.hpp.
|
inherited |
Definition at line 299 of file CCT-Tree.hpp.
|
inherited |
| Enumerator | |
|---|---|
| TyRoot | |
| TyProcFrm | |
| TyProc | |
| TyLoop | |
| TyCall | |
| TyStmt | |
| TyANY | |
| TyNUMBER | |
Definition at line 302 of file CCT-Tree.hpp.
Definition at line 1330 of file CCT-Tree.hpp.
|
inline |
Definition at line 1335 of file CCT-Tree.hpp.
|
inlinevirtual |
Definition at line 1344 of file CCT-Tree.hpp.
|
inherited |
Definition at line 1456 of file CCT-Tree.cpp.
Definition at line 505 of file CCT-Tree.cpp.


|
inherited |
Definition at line 516 of file CCT-Tree.cpp.
|
inlineinherited |
Definition at line 458 of file CCT-Tree.cpp.


|
inherited |
|
inlineinherited |
Definition at line 510 of file CCT-Tree.hpp.
|
inherited |
Definition at line 426 of file CCT-Tree.cpp.
|
inherited |
Definition at line 183 of file NonUniformDegreeTree.cpp.

|
inlinestaticinherited |
|
inherited |
Definition at line 419 of file CCT-Tree.cpp.
|
inherited |
Definition at line 412 of file CCT-Tree.cpp.
|
inherited |
|
inherited |
Definition at line 393 of file CCT-Tree.cpp.
|
inherited |
Definition at line 433 of file CCT-Tree.cpp.
|
staticinherited |
Definition at line 327 of file CCT-Tree.cpp.
|
inlineinherited |
Definition at line 813 of file CCT-Tree.hpp.


|
inlineinherited |
|
inlineinherited |
Definition at line 809 of file CCT-Tree.hpp.
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 163 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
inlinestaticinherited |
Definition at line 887 of file CCT-Tree.hpp.
|
virtualinherited |
Reimplemented in Prof::CCT::ProcFrm.
Definition at line 1086 of file CCT-Tree.cpp.

|
inherited |
Definition at line 605 of file CCT-Tree.cpp.


|
inherited |
Definition at line 644 of file CCT-Tree.cpp.


|
inherited |
Definition at line 662 of file CCT-Tree.cpp.


|
inherited |
Definition at line 623 of file CCT-Tree.cpp.


|
inlineinherited |
|
inlineinherited |
Definition at line 796 of file CCT-Tree.hpp.
|
inherited |
|
inherited |
|
inherited |
Definition at line 155 of file Metric-IData.cpp.


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


|
inlineinherited |
|
inherited |

|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 995 of file CCT-Tree.cpp.


|
inlineinherited |
Definition at line 197 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
Definition at line 438 of file CCT-Tree.hpp.


|
inlinestaticinherited |
Definition at line 966 of file CCT-Tree.hpp.


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


|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 426 of file CCT-Tree.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 388 of file CCT-Tree.hpp.
|
inline |
Definition at line 1357 of file CCT-Tree.hpp.
|
inline |
Definition at line 1363 of file CCT-Tree.hpp.
|
inlineinherited |
Definition at line 226 of file Metric-IData.hpp.


|
staticinherited |
|
inlineinherited |
Definition at line 167 of file NonUniformDegreeTree.hpp.

|
inlinestaticinherited |
Definition at line 931 of file CCT-Tree.hpp.


|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 201 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
inherited |
Definition at line 97 of file NonUniformDegreeTree.cpp.


|
inherited |
Definition at line 117 of file NonUniformDegreeTree.cpp.

|
inherited |
Definition at line 138 of file NonUniformDegreeTree.cpp.


|
inlineinherited |
|
inlineinherited |
Definition at line 883 of file CCT-Tree.hpp.
|
inherited |
|
inlineinherited |
Definition at line 823 of file CCT-Tree.hpp.


|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 841 of file CCT-Tree.hpp.
|
inlinevirtualinherited |
Reimplemented in Prof::CCT::Call.
Definition at line 845 of file CCT-Tree.hpp.


|
inlineinherited |
Definition at line 1061 of file CCT-Tree.cpp.


|
inlineinherited |
|
inherited |
Definition at line 906 of file CCT-Tree.cpp.


|
inherited |
Definition at line 824 of file CCT-Tree.cpp.


|
protectedinherited |
Definition at line 1020 of file CCT-Tree.cpp.


|
virtualinherited |
Reimplemented from Prof::CCT::ANode.
Definition at line 949 of file CCT-Tree.cpp.


|
inlineinherited |
|
inlineinherited |
Definition at line 171 of file Metric-IData.hpp.
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in Prof::CCT::Root.
Definition at line 394 of file CCT-Tree.hpp.

|
inherited |
Definition at line 1181 of file CCT-Tree.cpp.


|
inlineinherited |
Definition at line 189 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
inline |
Definition at line 1381 of file CCT-Tree.hpp.
|
inline |
Definition at line 1387 of file CCT-Tree.hpp.
|
inlineinherited |
Definition at line 233 of file Metric-IData.hpp.


Definition at line 1348 of file CCT-Tree.hpp.
|
inlineinherited |
Definition at line 870 of file CCT-Tree.hpp.
|
inlineinherited |
Definition at line 185 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
Definition at line 434 of file CCT-Tree.hpp.


|
inlineinherited |
Definition at line 193 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
inherited |
Definition at line 691 of file CCT-Tree.cpp.


|
staticinherited |

|
inherited |
Definition at line 765 of file CCT-Tree.cpp.


|
inline |
Definition at line 1369 of file CCT-Tree.hpp.
|
inline |
Definition at line 1375 of file CCT-Tree.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 405 of file CCT-Tree.hpp.
|
inlineinherited |
|
virtualinherited |
Reimplemented in Prof::Struct::ANode.
Definition at line 216 of file NonUniformDegreeTree.cpp.


|
virtualinherited |
|
virtual |
Reimplemented from Prof::CCT::ANode.
Definition at line 1367 of file CCT-Tree.cpp.


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


|
inlineinherited |
|
inherited |
Definition at line 152 of file NonUniformDegreeTree.cpp.

|
inherited |
Definition at line 1191 of file CCT-Tree.cpp.
|
inherited |
Definition at line 105 of file Metric-IData.cpp.


|
inherited |

|
inherited |
Definition at line 1426 of file CCT-Tree.cpp.


|
protectedinherited |

|
protectedinherited |

|
inlineprotectedinherited |
Definition at line 207 of file NonUniformDegreeTree.hpp.

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


Definition at line 444 of file CCT-Tree.cpp.


|
protectedinherited |
Definition at line 225 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 222 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 695 of file CCT-Tree.hpp.
|
protectedinherited |
Definition at line 696 of file CCT-Tree.hpp.
|
private |
Definition at line 1397 of file CCT-Tree.hpp.
|
protectedinherited |
Definition at line 223 of file NonUniformDegreeTree.hpp.
|
private |
Definition at line 1398 of file CCT-Tree.hpp.
|
protectedinherited |
Definition at line 221 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 224 of file NonUniformDegreeTree.hpp.
|
private |
Definition at line 1399 of file CCT-Tree.hpp.
|
protectedinherited |
Definition at line 698 of file CCT-Tree.hpp.
|
protectedinherited |
Definition at line 694 of file CCT-Tree.hpp.
|
staticinherited |
Definition at line 138 of file Metric-IData.hpp.