|
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 | |
| AProcNode (ANodeTy type, ANode *parent, Struct::ACodeNode *strct) | |
| virtual | ~AProcNode () |
| AProcNode (const AProcNode &x) | |
| AProcNode & | operator= (const AProcNode &x) |
| virtual const std::string & | lmName () const |
| virtual uint | lmId () const |
| virtual const std::string & | fileName () const |
| virtual uint | fileId () const |
| virtual const std::string & | procName () const |
| virtual uint | procId () const |
| virtual bool | isAlien () const =0 |
| 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) |
| virtual MergeEffect | mergeMe (const ANode &y, MergeContext *mrgCtxt=NULL, uint metricBegIdx=0, bool mayConflict=true) |
| 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 |
| virtual std::string | toStringMe (uint oFlags=0) 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 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 |
Static Protected Attributes | |
| static std::string | BOGUS |
Definition at line 1017 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.
|
inline |
Definition at line 1026 of file CCT-Tree.hpp.
|
inlinevirtual |
Definition at line 1030 of file CCT-Tree.hpp.
|
inline |
Definition at line 1034 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.

|
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 |
|
inlineinherited |
Definition at line 163 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
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.


|
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 |
|
inlinevirtual |
Reimplemented in Prof::CCT::ProcFrm.
Definition at line 1076 of file CCT-Tree.hpp.
|
inlinevirtual |
Reimplemented in Prof::CCT::ProcFrm.
Definition at line 1063 of file CCT-Tree.hpp.


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.


|
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.
|
inlineinherited |
Definition at line 226 of file Metric-IData.hpp.


|
staticinherited |
|
pure virtual |
Implemented in Prof::CCT::Proc, and Prof::CCT::ProcFrm.
|
inlineinherited |
Definition at line 167 of file NonUniformDegreeTree.hpp.

|
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.


|
inlinevirtual |
Definition at line 1058 of file CCT-Tree.hpp.
|
inlinevirtual |
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 in Prof::CCT::ADynNode.
Definition at line 929 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.

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

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


Definition at line 1040 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 |
|
inlinevirtual |
Definition at line 1090 of file CCT-Tree.hpp.
|
inlinevirtual |
|
inherited |
Definition at line 691 of file CCT-Tree.cpp.


|
staticinherited |

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


|
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 |
|
virtualinherited |
Reimplemented in Prof::CCT::Stmt, Prof::CCT::Call, Prof::CCT::Loop, Prof::CCT::Proc, Prof::CCT::ProcFrm, and Prof::CCT::Root.
Definition at line 1134 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 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.


|
staticprotected |
Definition at line 1099 of file CCT-Tree.hpp.
|
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.
|
protectedinherited |
Definition at line 223 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 221 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 224 of file NonUniformDegreeTree.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.