|
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 | |
| virtual | ~ACodeNode () |
| virtual ANode * | clone () |
| SrcFile::ln | begLine () const |
| void | begLine (SrcFile::ln x) |
| SrcFile::ln | endLine () const |
| void | endLine (SrcFile::ln x) |
| void | setLineRange (SrcFile::ln begLn, SrcFile::ln endLn, int propagate=1) |
| void | expandLineRange (SrcFile::ln begLn, SrcFile::ln endLn, int propagate=1) |
| void | linkAndSetLineRange (ACodeNode *parent) |
| void | checkLineRange (SrcFile::ln begLn, SrcFile::ln endLn) |
| void | freezeLine () |
| void | thawLine () |
| const VMAIntervalSet & | vmaSet () const |
| VMAIntervalSet & | vmaSet () |
| bool | containsLine (SrcFile::ln ln) const |
| bool | containsLine (SrcFile::ln ln, int beg_epsilon, int end_epsilon) const |
| bool | containsInterval (SrcFile::ln begLn, SrcFile::ln endLn) const |
| bool | containsInterval (SrcFile::ln begLn, SrcFile::ln endLn, int beg_epsilon, int end_epsilon) const |
| ACodeNode * | ACodeNodeWithLine (SrcFile::ln ln) const |
| ACodeNode * | nextSiblingNonOverlapping () const |
| virtual std::string | nameQual () const |
| virtual std::string | codeName () const |
| std::string | lineRange () const |
| virtual std::string | toXML (uint oFlags=0) const |
| virtual std::string | XMLLineRange (uint oFlags) const |
| virtual std::string | XMLVMAIntervals (uint oFlags) 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::ostream & | dumpme (std::ostream &os=std::cerr, uint oFlags=0, const char *pre="") const |
| void | setScopeLocation (std::string &file, SrcFile::ln line) |
| std::string & | getScopeFileName () |
| SrcFile::ln | getScopeLineNum () |
| ANodeTy | type () const |
| uint | id () const |
| virtual const std::string & | name () 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 |
| virtual std::ostream & | writeXML (std::ostream &os=std::cout, uint oFlags=0, const char *pre="") const |
| void | ddumpXML () const |
| void | CSV_DumpSelf (const Root &root, std::ostream &os=std::cout) 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 int | compare (const ACodeNode *x, const ACodeNode *y) |
| 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 | |
| ACodeNode (ANodeTy ty, ANode *parent=NULL, SrcFile::ln begLn=ln_NULL, SrcFile::ln endLn=ln_NULL, VMA begVMA=0, VMA endVMA=0) | |
| ACodeNode (const ACodeNode &x) | |
| ACodeNode & | operator= (const ACodeNode &x) |
| void | relocate () |
| void | relocateIf () |
| std::string | codeName_LM_F () const |
| 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 () |
Private Attributes | |
| std::string | m_scope_filenm |
| SrcFile::ln | m_scope_lineno |
| bool | m_lineno_frozen |
Definition at line 613 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 |
|
inlineprotected |
Definition at line 631 of file Struct-Tree.hpp.
|
inlinevirtual |
Definition at line 654 of file Struct-Tree.hpp.
|
inherited |
Definition at line 536 of file Struct-Tree.cpp.


| ACodeNode * Prof::Struct::ACodeNode::ACodeNodeWithLine | ( | SrcFile::ln | ln | ) | const |
Definition at line 1199 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 |
|
inline |
|
inline |
Definition at line 672 of file Struct-Tree.hpp.
|
inline |
Definition at line 693 of file Struct-Tree.hpp.


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

|
inlineinherited |
|
inlinevirtual |
Reimplemented from Prof::Struct::ANode.
Reimplemented in Prof::Struct::Ref, Prof::Struct::Stmt, Prof::Struct::Loop, Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, Prof::Struct::LM, and Prof::Struct::Group.
Definition at line 658 of file Struct-Tree.hpp.
|
virtual |
Reimplemented in Prof::Struct::Ref, Prof::Struct::Stmt, Prof::Struct::Loop, Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, Prof::Struct::LM, and Prof::Struct::Group.
Definition at line 1308 of file Struct-Tree.cpp.


|
protected |
Definition at line 1319 of file Struct-Tree.cpp.


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


|
inline |
Definition at line 745 of file Struct-Tree.hpp.
|
inline |
|
inline |
| bool Prof::Struct::ACodeNode::containsLine | ( | SrcFile::ln | ln, |
| int | beg_epsilon, | ||
| int | end_epsilon | ||
| ) | const |
|
virtual |
Reimplemented from Prof::Struct::ANode.
Reimplemented in Prof::Struct::Alien, Prof::Struct::Proc, and Prof::Struct::File.
Definition at line 1771 of file Struct-Tree.cpp.

|
inherited |
Definition at line 1687 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.
Reimplemented in Prof::Struct::Ref, Prof::Struct::Stmt, Prof::Struct::Loop, Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, Prof::Struct::LM, and Prof::Struct::Group.
Definition at line 1873 of file Struct-Tree.cpp.


|
inherited |
|
inline |
|
inline |
Definition at line 680 of file Struct-Tree.hpp.
|
inlineinherited |
| void Prof::Struct::ACodeNode::expandLineRange | ( | SrcFile::ln | begLn, |
| SrcFile::ln | endLn, | ||
| int | propagate = 1 |
||
| ) |
Definition at line 1096 of file Struct-Tree.cpp.


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

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


|
inline |
Definition at line 704 of file Struct-Tree.hpp.
|
inline |
Definition at line 851 of file Struct-Tree.hpp.
|
inline |
Definition at line 852 of file Struct-Tree.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 141 of file Metric-IData.hpp.


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


| string Prof::Struct::ACodeNode::lineRange | ( | ) | const |
Definition at line 1300 of file Struct-Tree.cpp.


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


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

| void Prof::Struct::ACodeNode::linkAndSetLineRange | ( | ACodeNode * | parent | ) |
|
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 |
|
inlinevirtualinherited |
Reimplemented in Prof::Struct::Ref, Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, Prof::Struct::LM, Prof::Struct::Group, and Prof::Struct::Root.
Definition at line 352 of file Struct-Tree.hpp.

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

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

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


| ACodeNode * Prof::Struct::ACodeNode::nextSiblingNonOverlapping | ( | ) | const |
|
inlineinherited |
Definition at line 233 of file Metric-IData.hpp.


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


|
protected |
|
inlineprotected |
|
inlineinherited |
Definition at line 360 of file Struct-Tree.hpp.
| void Prof::Struct::ACodeNode::setLineRange | ( | SrcFile::ln | begLn, |
| SrcFile::ln | endLn, | ||
| int | propagate = 1 |
||
| ) |
Definition at line 1074 of file Struct-Tree.cpp.


|
inline |
Definition at line 847 of file Struct-Tree.hpp.
|
inline |
Definition at line 708 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.
Reimplemented in Prof::Struct::Ref, Prof::Struct::Stmt, Prof::Struct::Loop, Prof::Struct::Alien, Prof::Struct::Proc, Prof::Struct::File, Prof::Struct::LM, and Prof::Struct::Group.
Definition at line 1428 of file Struct-Tree.cpp.


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

|
inline |
|
inline |
Definition at line 721 of file Struct-Tree.hpp.
|
inherited |
Definition at line 105 of file Metric-IData.cpp.


|
virtualinherited |
Reimplemented in Prof::Struct::LM, and Prof::Struct::Root.

|
protectedinherited |

|
protectedinherited |

|
virtual |
Definition at line 1437 of file Struct-Tree.cpp.


|
virtual |
Definition at line 1450 of file Struct-Tree.cpp.


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

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


|
staticinherited |
Definition at line 342 of file Struct-Tree.hpp.
|
protected |
Definition at line 832 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 225 of file NonUniformDegreeTree.hpp.
|
protectedinherited |
Definition at line 222 of file NonUniformDegreeTree.hpp.
|
protected |
Definition at line 833 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 600 of file Struct-Tree.hpp.
|
private |
Definition at line 844 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.
|
private |
Definition at line 842 of file Struct-Tree.hpp.
|
private |
Definition at line 843 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 599 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 601 of file Struct-Tree.hpp.
|
protected |
Definition at line 834 of file Struct-Tree.hpp.
|
staticinherited |
Definition at line 138 of file Metric-IData.hpp.