HPCToolkit
|
#include <CCT-Tree.hpp>
Public Types | |
enum | { OFlg_Compressed = (1 << 0), OFlg_LeafMetricsOnly = (1 << 1), OFlg_Debug = (1 << 2), OFlg_DebugAll = (1 << 3), OFlg_StructId = (1 << 4) } |
typedef std::map< uint, ANode * > | NodeIdToANodeMap |
Public Member Functions | |
Tree (const CallPath::Profile *metadata) | |
virtual | ~Tree () |
ANode * | root () const |
void | root (ANode *x) |
bool | empty () const |
const CallPath::Profile * | metadata () const |
MergeEffectList * | merge (const Tree *y, uint x_newMetricBegIdx, uint mrgFlag=0, uint oFlag=0) |
uint | makeDensePreorderIds () |
uint | maxDenseId () const |
ANode * | findNode (uint nodeId) const |
void | pruneCCTByNodeId (const uint8_t *prunedNodes) |
bool | verifyUniqueCPIds () |
std::ostream & | writeXML (std::ostream &os, const Metric::Mgr *metricMgr, uint metricBeg=Metric::IData::npos, uint metricEnd=Metric::IData::npos, uint oFlags=0) const |
std::ostream & | dump (const Metric::Mgr *metricMgr, std::ostream &os=std::cerr, uint oFlags=0) const |
void | ddump (const Metric::Mgr *metricMgr) const |
int | getNumNodeId () |
Static Public Member Functions | |
static int | doXMLEscape (uint oFlags) |
Private Attributes | |
ANode * | m_root |
const CallPath::Profile * | m_metadata |
uint | m_maxDenseId |
NodeIdToANodeMap * | m_nodeidMap |
MergeContext * | m_mergeCtxt |
Definition at line 132 of file CCT-Tree.hpp.
typedef std::map<uint, ANode*> Prof::CCT::Tree::NodeIdToANodeMap |
Definition at line 248 of file CCT-Tree.hpp.
anonymous enum |
Enumerator | |
---|---|
OFlg_Compressed | |
OFlg_LeafMetricsOnly | |
OFlg_Debug | |
OFlg_DebugAll | |
OFlg_StructId |
Definition at line 137 of file CCT-Tree.hpp.
Prof::CCT::Tree::Tree | ( | const CallPath::Profile * | metadata | ) |
Definition at line 148 of file CCT-Tree.cpp.
|
virtual |
Definition at line 156 of file CCT-Tree.cpp.
void Prof::CCT::Tree::ddump | ( | const Metric::Mgr * | metricMgr | ) | const |
|
static |
std::ostream & Prof::CCT::Tree::dump | ( | const Metric::Mgr * | metricMgr, |
std::ostream & | os = std::cerr , |
||
uint | oFlags = 0 |
||
) | const |
Definition at line 293 of file CCT-Tree.cpp.
|
inline |
Definition at line 243 of file CCT-Tree.cpp.
|
inline |
Definition at line 235 of file CCT-Tree.hpp.
uint Prof::CCT::Tree::makeDensePreorderIds | ( | ) |
Definition at line 232 of file CCT-Tree.cpp.
|
inline |
Definition at line 193 of file CCT-Tree.hpp.
MergeEffectList * Prof::CCT::Tree::merge | ( | const Tree * | y, |
uint | x_newMetricBegIdx, | ||
uint | mrgFlag = 0 , |
||
uint | oFlag = 0 |
||
) |
Definition at line 166 of file CCT-Tree.cpp.
|
inline |
void Prof::CCT::Tree::pruneCCTByNodeId | ( | const uint8_t * | prunedNodes | ) |
Definition at line 221 of file CCT-Tree.cpp.
|
inline |
|
inline |
Definition at line 164 of file CCT-Tree.hpp.
bool Prof::CCT::Tree::verifyUniqueCPIds | ( | ) |
Definition at line 258 of file CCT-Tree.cpp.
std::ostream & Prof::CCT::Tree::writeXML | ( | std::ostream & | os, |
const Metric::Mgr * | metricMgr, | ||
uint | metricBeg = Metric::IData::npos , |
||
uint | metricEnd = Metric::IData::npos , |
||
uint | oFlags = 0 |
||
) | const |
Definition at line 281 of file CCT-Tree.cpp.
|
private |
Definition at line 257 of file CCT-Tree.hpp.
|
private |
Definition at line 261 of file CCT-Tree.hpp.
|
private |
Definition at line 254 of file CCT-Tree.hpp.
|
mutableprivate |
Definition at line 258 of file CCT-Tree.hpp.
|
private |
Definition at line 253 of file CCT-Tree.hpp.