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


Public Types | |
| enum | ANodeTy { TyRoot = 0, TyGroup, TyLM, TyFile, TyProc, TyAlien, TyLoop, TyStmt, TyRef, TyVariable, TyANY, TyNUMBER } |
| typedef std::vector< hpcrun_metricVal_t > | MetricVec |
Public Member Functions | |
| Root (const char *nm) | |
| Root (const std::string &nm) | |
| virtual | ~Root () |
| virtual const std::string & | name () const |
| void | name (const char *x) |
| void | name (const std::string &x) |
| LM * | findLM (const char *nm) const |
| LM * | findLM (const std::string &nm) const |
| Group * | findGroup (const char *nm) const |
| Group * | findGroup (const std::string &nm) const |
| virtual ANode * | clone () |
| virtual std::string | toXML (uint oFlags=0) const |
| virtual std::ostream & | writeXML (std::ostream &os=std::cout, uint oFlags=0, const char *pre="") const |
| void | CSV_TreeDump (std::ostream &os=std::cout) const |
| virtual std::ostream & | dumpme (std::ostream &os=std::cerr, uint oFlags=0, const char *pre="") const |
| ANodeTy | type () const |
| uint | id () const |
| virtual std::string | nameQual () const |
| void | setInvisible () |
| bool | isVisible () const |
| ANode * | parent () const |
| ANode * | firstChild () const |
| ANode * | lastChild () const |
| ANode * | nextSibling () const |
| ANode * | prevSibling () const |
| ANode * | ancestor (ANodeTy type) const |
| ANode * | ancestor (ANodeTy ty1, ANodeTy ty2) const |
| ANode * | ancestor (ANodeTy ty1, ANodeTy ty2, ANodeTy ty3) const |
| Root * | ancestorRoot () const |
| Group * | ancestorGroup () const |
| LM * | ancestorLM () const |
| File * | ancestorFile () const |
| Proc * | ancestorProc () const |
| Alien * | ancestorAlien () const |
| Loop * | ancestorLoop () const |
| Stmt * | ancestorStmt () const |
| ACodeNode * | ancestorProcCtxt () const |
| ACodeNode * | ACodeNodeParent () const |
| void | aggregateMetrics (uint mBegId, uint mEndId) |
| void | aggregateMetrics (uint mBegId) |
| void | pruneByMetrics () |
| std::string | toStringXML (uint oFlags=0, const char *pre="") const |
| void | ddumpXML () const |
| void | CSV_DumpSelf (const Root &root, std::ostream &os=std::cout) const |
| virtual void | CSV_dump (const Root &root, std::ostream &os=std::cout, const char *file_name=NULL, const char *proc_name=NULL, int lLevel=0) const |
| virtual std::string | toString (uint oFlags=0, const char *pre="") const |
| std::string | toString_id (uint oFlags=0) const |
| std::string | toStringMe (uint oFlags=0, const char *pre="") const |
| std::ostream & | dump (std::ostream &os=std::cerr, uint oFlags=0, const char *pre="") const |
| void | ddump () 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 const std::string & | ANodeTyToXMLelement (ANodeTy tp) |
| static ANodeTy | IntToANodeTy (long i) |
| static uint | maxId () |
| static ANode * | leastCommonAncestor (ANode *n1, ANode *n2) |
| static int | distance (ANode *ancestor, ANode *descendent) |
| static bool | arePathsOverlapping (ANode *lca, ANode *desc1, ANode *desc2) |
| static bool | mergePaths (ANode *lca, ANode *node_dst, ANode *node_src) |
| static bool | merge (ANode *node_dst, ANode *node_src) |
| static bool | isMergable (ANode *node_dst, ANode *node_src) |
Public Attributes | |
| uint | m_origId |
Static Public Attributes | |
| static const uint | Id_NULL = 0 |
| static const uint | npos = UINT_MAX |
Protected Member Functions | |
| Root (const Root &x) | |
| Root & | operator= (const Root &x) |
| bool | writeXML_pre (std::ostream &os=std::cout, uint oFlags=0, const char *prefix="") const |
| void | writeXML_post (std::ostream &os=std::cout, uint oFlags=0, const char *prefix="") const |
| void | zeroLinks () |
Protected Attributes | |
| ANodeTy | m_type |
| uint | m_id |
| bool | m_visible |
| NonUniformDegreeTreeNode * | m_parent |
| NonUniformDegreeTreeNode * | m_children |
| NonUniformDegreeTreeNode * | m_next_sibling |
| NonUniformDegreeTreeNode * | m_prev_sibling |
| uint | m_child_count |
Private Member Functions | |
| void | Ctor (const char *nm) |
| void | insertGroupMap (Group *grp) |
| void | insertLMMap (LM *lm) |
Private Attributes | |
| std::string | m_name |
| GroupMap * | groupMap |
| LMMap * | lmMap_realpath |
| LMMap * | lmMap_basename |
Friends | |
| class | Group |
| class | LM |
Definition at line 865 of file Struct-Tree.hpp.
|
inherited |
Definition at line 107 of file Metric-IData.hpp.
|
inherited |
| Enumerator | |
|---|---|
| TyRoot | |
| TyGroup | |
| TyLM | |
| TyFile | |
| TyProc | |
| TyAlien | |
| TyLoop | |
| TyStmt | |
| TyRef | |
| TyVariable | |
| TyANY | |
| TyNUMBER | |
Definition at line 255 of file Struct-Tree.hpp.
|
inlineprotected |
Definition at line 867 of file Struct-Tree.hpp.
|
inline |
Definition at line 877 of file Struct-Tree.hpp.
|
inline |
Definition at line 883 of file Struct-Tree.hpp.
|
inlinevirtual |
Definition at line 889 of file Struct-Tree.hpp.
|
inherited |
Definition at line 536 of file Struct-Tree.cpp.


Definition at line 694 of file Struct-Tree.cpp.


|
inlineinherited |
Definition at line 543 of file Struct-Tree.cpp.


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

|
inherited |
Definition at line 648 of file Struct-Tree.cpp.


|
inherited |
|
inherited |
Definition at line 641 of file Struct-Tree.cpp.


|
inherited |
|
inherited |
Definition at line 655 of file Struct-Tree.cpp.


|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
inlineinherited |
Definition at line 163 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
|
inlinevirtual |
Reimplemented from Prof::Struct::ANode.
Definition at line 935 of file Struct-Tree.hpp.

|
virtualinherited |
Reimplemented in Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, and Prof::Struct::ACodeNode.
Definition at line 1712 of file Struct-Tree.cpp.


|
inherited |
Definition at line 1687 of file Struct-Tree.cpp.


| void Prof::Struct::Root::CSV_TreeDump | ( | std::ostream & | os = std::cout | ) | const |
Definition at line 1794 of file Struct-Tree.cpp.


|
private |
Definition at line 243 of file Struct-Tree.cpp.
|
inherited |
|
inherited |
Definition at line 155 of file Metric-IData.cpp.


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


|
inlineinherited |
|
inherited |

|
virtual |
Reimplemented from Prof::Struct::ANode.
Definition at line 1882 of file Struct-Tree.cpp.

|
inherited |
|
inlineinherited |
|
inline |
|
inline |
Definition at line 931 of file Struct-Tree.hpp.
| LM * Prof::Struct::Root::findLM | ( | const char * | nm | ) | const |
Definition at line 269 of file Struct-Tree.cpp.


|
inline |
Definition at line 919 of file Struct-Tree.hpp.
|
inlineinherited |
Definition at line 197 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
Definition at line 375 of file Struct-Tree.hpp.


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


|
inlineinherited |
|
inlineinherited |
|
private |
|
private |
Definition at line 896 of file Struct-Tree.cpp.


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


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

Definition at line 855 of file Struct-Tree.cpp.


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

|
inlineinherited |
Definition at line 379 of file Struct-Tree.hpp.


|
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 |
|
inlinestaticinherited |
Definition at line 346 of file Struct-Tree.hpp.
Definition at line 818 of file Struct-Tree.cpp.


|
inlineinherited |
|
inlineinherited |
Definition at line 171 of file Metric-IData.hpp.
|
inlineinherited |
|
inlinevirtual |
Reimplemented from Prof::Struct::ANode.
Definition at line 897 of file Struct-Tree.hpp.

|
inline |
Definition at line 901 of file Struct-Tree.hpp.
|
inline |
Definition at line 905 of file Struct-Tree.hpp.
|
inlinevirtualinherited |
Reimplemented in Prof::Struct::ACodeNode.
Definition at line 356 of file Struct-Tree.hpp.

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

|
inlineinherited |
Definition at line 383 of file Struct-Tree.hpp.


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


Definition at line 255 of file Struct-Tree.cpp.
|
inlineinherited |
Definition at line 185 of file NonUniformDegreeTree.hpp.

|
inlineinherited |
Definition at line 371 of file Struct-Tree.hpp.


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

|
inlineinherited |
Definition at line 393 of file Struct-Tree.hpp.


|
inherited |
Definition at line 716 of file Struct-Tree.cpp.


|
inlineinherited |
Definition at line 360 of file Struct-Tree.hpp.
|
virtualinherited |
Reimplemented from NonUniformDegreeTreeNode.
Definition at line 1805 of file Struct-Tree.cpp.


|
inherited |
Definition at line 1814 of file Struct-Tree.cpp.


|
inherited |
Definition at line 1823 of file Struct-Tree.cpp.


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


|
inherited |
Definition at line 1411 of file Struct-Tree.cpp.


|
virtual |
Reimplemented from Prof::Struct::ANode.
Definition at line 1458 of file Struct-Tree.cpp.

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

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


|
virtual |
Reimplemented from Prof::Struct::ANode.
Definition at line 1638 of file Struct-Tree.cpp.


|
protectedinherited |

|
protectedinherited |

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

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


|
friend |
Definition at line 972 of file Struct-Tree.hpp.
|
friend |
Definition at line 973 of file Struct-Tree.hpp.
|
private |
Definition at line 978 of file Struct-Tree.hpp.
|
staticinherited |
Definition at line 342 of file Struct-Tree.hpp.
|
private |
Definition at line 981 of file Struct-Tree.hpp.
|
private |
Definition at line 980 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 225 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 222 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 600 of file Struct-Tree.hpp.
|
private |
Definition at line 976 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 223 of file NonUniformDegreeTree.hpp.
|
inherited |
Definition at line 605 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 221 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 224 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 599 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 601 of file Struct-Tree.hpp.
|
staticinherited |
Definition at line 138 of file Metric-IData.hpp.