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 | |
Group (const char *nm, ANode *parent, int begLn=ln_NULL, int endLn=ln_NULL) | |
Group (const std::string &nm, ANode *parent, int begLn=ln_NULL, int endLn=ln_NULL) | |
virtual | ~Group () |
virtual const std::string & | name () const |
virtual std::string | codeName () const |
virtual ANode * | clone () |
virtual std::string | toXML (uint oFlags=0) const |
virtual std::ostream & | dumpme (std::ostream &os=std::cerr, uint oFlags=0, const char *pre="") const |
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 |
std::string | lineRange () 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 |
void | setScopeLocation (std::string &file, SrcFile::ln line) |
std::string & | getScopeFileName () |
SrcFile::ln | getScopeLineNum () |
ANodeTy | type () const |
uint | id () 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 Group * | demand (Root *pgm, const std::string &nm, ANode *parent) |
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 | |
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 Member Functions | |
void | Ctor (const char *nm, ANode *parent) |
Private Attributes | |
std::string | m_name |
Definition at line 1016 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.
|
inline |
Definition at line 1018 of file Struct-Tree.hpp.
|
inline |
Definition at line 1025 of file Struct-Tree.hpp.
|
inlinevirtual |
Definition at line 1032 of file Struct-Tree.hpp.
|
inherited |
Definition at line 536 of file Struct-Tree.cpp.
|
inherited |
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 |
|
inlineinherited |
|
inlineinherited |
Definition at line 672 of file Struct-Tree.hpp.
|
inlineinherited |
Definition at line 693 of file Struct-Tree.hpp.
|
inlineinherited |
Definition at line 163 of file NonUniformDegreeTree.hpp.
|
inlineinherited |
|
inlinevirtual |
Reimplemented from Prof::Struct::ACodeNode.
Definition at line 1046 of file Struct-Tree.hpp.
|
virtual |
Reimplemented from Prof::Struct::ACodeNode.
Definition at line 1332 of file Struct-Tree.cpp.
|
protectedinherited |
Definition at line 1319 of file Struct-Tree.cpp.
Definition at line 1231 of file Struct-Tree.cpp.
|
inlineinherited |
Definition at line 745 of file Struct-Tree.hpp.
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
virtualinherited |
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.
|
private |
|
inherited |
|
inherited |
Definition at line 155 of file Metric-IData.cpp.
|
inherited |
Definition at line 311 of file Struct-Tree.cpp.
|
inlineinherited |
Definition at line 182 of file Metric-IData.hpp.
|
inlineinherited |
|
inherited |
|
virtual |
Reimplemented from Prof::Struct::ACodeNode.
Definition at line 1890 of file Struct-Tree.cpp.
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 680 of file Struct-Tree.hpp.
|
inlineinherited |
|
inherited |
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.
|
inlineinherited |
Definition at line 704 of file Struct-Tree.hpp.
|
inlineinherited |
Definition at line 851 of file Struct-Tree.hpp.
|
inlineinherited |
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.
|
inherited |
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.
|
inherited |
|
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 1039 of file Struct-Tree.hpp.
|
inlinevirtualinherited |
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.
|
inherited |
|
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.
|
protectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 360 of file Struct-Tree.hpp.
|
inherited |
Definition at line 1074 of file Struct-Tree.cpp.
|
inlineinherited |
Definition at line 847 of file Struct-Tree.hpp.
|
inlineinherited |
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::ACodeNode.
Definition at line 1466 of file Struct-Tree.cpp.
|
inlineinherited |
|
inherited |
Definition at line 152 of file NonUniformDegreeTree.cpp.
|
inlineinherited |
|
inlineinherited |
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 |
|
virtualinherited |
Definition at line 1437 of file Struct-Tree.cpp.
|
virtualinherited |
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.
|
protectedinherited |
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.
|
protectedinherited |
Definition at line 833 of file Struct-Tree.hpp.
|
protectedinherited |
Definition at line 600 of file Struct-Tree.hpp.
|
private |
Definition at line 1065 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.
|
protectedinherited |
Definition at line 834 of file Struct-Tree.hpp.
|
staticinherited |
Definition at line 138 of file Metric-IData.hpp.