HPCToolkit
Prof::CCT::Tree Class Reference

#include <CCT-Tree.hpp>

Inheritance diagram for Prof::CCT::Tree:
Collaboration diagram for Prof::CCT::Tree:

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 ()
 
ANoderoot () const
 
void root (ANode *x)
 
bool empty () const
 
const CallPath::Profilemetadata () const
 
MergeEffectListmerge (const Tree *y, uint x_newMetricBegIdx, uint mrgFlag=0, uint oFlag=0)
 
uint makeDensePreorderIds ()
 
uint maxDenseId () const
 
ANodefindNode (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

ANodem_root
 
const CallPath::Profilem_metadata
 
uint m_maxDenseId
 
NodeIdToANodeMapm_nodeidMap
 
MergeContextm_mergeCtxt
 

Detailed Description

Definition at line 132 of file CCT-Tree.hpp.

Member Typedef Documentation

◆ NodeIdToANodeMap

Definition at line 248 of file CCT-Tree.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OFlg_Compressed 
OFlg_LeafMetricsOnly 
OFlg_Debug 
OFlg_DebugAll 
OFlg_StructId 

Definition at line 137 of file CCT-Tree.hpp.

Constructor & Destructor Documentation

◆ Tree()

Prof::CCT::Tree::Tree ( const CallPath::Profile metadata)

Definition at line 148 of file CCT-Tree.cpp.

◆ ~Tree()

Prof::CCT::Tree::~Tree ( )
virtual

Definition at line 156 of file CCT-Tree.cpp.

Member Function Documentation

◆ ddump()

void Prof::CCT::Tree::ddump ( const Metric::Mgr metricMgr) const

Definition at line 301 of file CCT-Tree.cpp.

Here is the call graph for this function:

◆ doXMLEscape()

static int Prof::CCT::Tree::doXMLEscape ( uint  oFlags)
static

◆ dump()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

bool Prof::CCT::Tree::empty ( ) const
inline

Definition at line 168 of file CCT-Tree.hpp.

Here is the caller graph for this function:

◆ findNode()

ANode * Prof::CCT::Tree::findNode ( uint  nodeId) const

Definition at line 243 of file CCT-Tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNumNodeId()

int Prof::CCT::Tree::getNumNodeId ( )
inline

Definition at line 235 of file CCT-Tree.hpp.

◆ makeDensePreorderIds()

uint Prof::CCT::Tree::makeDensePreorderIds ( )

Definition at line 232 of file CCT-Tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ maxDenseId()

uint Prof::CCT::Tree::maxDenseId ( ) const
inline

Definition at line 193 of file CCT-Tree.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ merge()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ metadata()

const CallPath::Profile* Prof::CCT::Tree::metadata ( ) const
inline

Definition at line 172 of file CCT-Tree.hpp.

Here is the caller graph for this function:

◆ pruneCCTByNodeId()

void Prof::CCT::Tree::pruneCCTByNodeId ( const uint8_t *  prunedNodes)

Definition at line 221 of file CCT-Tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ root() [1/2]

ANode* Prof::CCT::Tree::root ( ) const
inline

Definition at line 160 of file CCT-Tree.hpp.

Here is the caller graph for this function:

◆ root() [2/2]

void Prof::CCT::Tree::root ( ANode x)
inline

Definition at line 164 of file CCT-Tree.hpp.

◆ verifyUniqueCPIds()

bool Prof::CCT::Tree::verifyUniqueCPIds ( )

Definition at line 258 of file CCT-Tree.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeXML()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_maxDenseId

uint Prof::CCT::Tree::m_maxDenseId
private

Definition at line 257 of file CCT-Tree.hpp.

◆ m_mergeCtxt

MergeContext* Prof::CCT::Tree::m_mergeCtxt
private

Definition at line 261 of file CCT-Tree.hpp.

◆ m_metadata

const CallPath::Profile* Prof::CCT::Tree::m_metadata
private

Definition at line 254 of file CCT-Tree.hpp.

◆ m_nodeidMap

NodeIdToANodeMap* Prof::CCT::Tree::m_nodeidMap
mutableprivate

Definition at line 258 of file CCT-Tree.hpp.

◆ m_root

ANode* Prof::CCT::Tree::m_root
private

Definition at line 253 of file CCT-Tree.hpp.


The documentation for this class was generated from the following files: