MeVisLab Toolbox Reference
MLCallGraphNode Class Reference

#include <mlCallGraph.h>

Public Member Functions

 MLCallGraphNode (MLTimeProfile *timeProfile=nullptr, MLCallGraphNode *parent=nullptr, void *userData=nullptr, const MLCallGraphFunctionPtr &callGraphFunction=MLCallGraphFunctionPtr(), const std::string &nodeInfo="")
 
 ~MLCallGraphNode ()
 
MLCallGraphNodecreateChild (MLTimeProfile *timeProfile, const MLCallGraphFunctionPtr &function, void *userData, const std::string &nodeInfo)
 
const MLTimertimer () const
 
const MLTimeProfiletimeProfile () const
 
const MLCallGraphFunctionPtrfunction () const
 
void clearFunctionRecursive ()
 
const std::vector< MLCallGraphNode * > & children () const
 
MLCallGraphNodeparent () const
 
bool isRecursive (const MLTimeProfile *timeProfile) const
 Returns true if the node is a recursive call of its function regarding the time profile.
 
bool isRecursive () const
 Returns true if the node is a recursive call of its function.
 
void print (std::ostream &out, const std::string &indent="") const
 
void printTrace (std::ostream &out) const
 Prints the current call graph node for tracing.
 
void removeFromParent ()
 Removes the node from its parent.
 
const MLTimeStatisticsstatistics () const
 Returns the time statistics of the call graph node.
 
voiduserData () const
 Returns the user data.
 
const std::string & nodeInfo () const
 Returns the node info.
 
void clearUserData ()
 Clears the user data.
 

Friends

class MLProfilingManager
 
class MLTimeProfile
 

Detailed Description

Definition at line 93 of file mlCallGraph.h.

Constructor & Destructor Documentation

◆ MLCallGraphNode()

MLCallGraphNode::MLCallGraphNode ( MLTimeProfile * timeProfile = nullptr,
MLCallGraphNode * parent = nullptr,
void * userData = nullptr,
const MLCallGraphFunctionPtr & callGraphFunction = MLCallGraphFunctionPtr(),
const std::string & nodeInfo = "" )

◆ ~MLCallGraphNode()

MLCallGraphNode::~MLCallGraphNode ( )

Member Function Documentation

◆ children()

const std::vector< MLCallGraphNode * > & MLCallGraphNode::children ( ) const
inline

Definition at line 110 of file mlCallGraph.h.

◆ clearFunctionRecursive()

void MLCallGraphNode::clearFunctionRecursive ( )

◆ clearUserData()

void MLCallGraphNode::clearUserData ( )
inline

Clears the user data.

Definition at line 140 of file mlCallGraph.h.

◆ createChild()

MLCallGraphNode * MLCallGraphNode::createChild ( MLTimeProfile * timeProfile,
const MLCallGraphFunctionPtr & function,
void * userData,
const std::string & nodeInfo )

◆ function()

const MLCallGraphFunctionPtr & MLCallGraphNode::function ( ) const
inline

Definition at line 108 of file mlCallGraph.h.

◆ isRecursive() [1/2]

bool MLCallGraphNode::isRecursive ( ) const
inline

Returns true if the node is a recursive call of its function.

Definition at line 244 of file mlCallGraph.h.

◆ isRecursive() [2/2]

bool MLCallGraphNode::isRecursive ( const MLTimeProfile * timeProfile) const
inline

Returns true if the node is a recursive call of its function regarding the time profile.

If it is false, isRecursive() can still return true.

Definition at line 258 of file mlCallGraph.h.

References mlrange_cast().

◆ nodeInfo()

const std::string & MLCallGraphNode::nodeInfo ( ) const
inline

Returns the node info.

Definition at line 137 of file mlCallGraph.h.

◆ parent()

MLCallGraphNode * MLCallGraphNode::parent ( ) const
inline

Definition at line 111 of file mlCallGraph.h.

◆ print()

void MLCallGraphNode::print ( std::ostream & out,
const std::string & indent = "" ) const

◆ printTrace()

void MLCallGraphNode::printTrace ( std::ostream & out) const

Prints the current call graph node for tracing.

◆ removeFromParent()

void MLCallGraphNode::removeFromParent ( )

Removes the node from its parent.

This is used by MLTimeProfile when call graph nodes are deleted. Otherwise the parent would delete the invalid child pointer again.

◆ statistics()

const MLTimeStatistics & MLCallGraphNode::statistics ( ) const
inline

Returns the time statistics of the call graph node.

Definition at line 131 of file mlCallGraph.h.

◆ timeProfile()

const MLTimeProfile * MLCallGraphNode::timeProfile ( ) const
inline

Definition at line 107 of file mlCallGraph.h.

◆ timer()

const MLTimer & MLCallGraphNode::timer ( ) const
inline

Definition at line 106 of file mlCallGraph.h.

◆ userData()

void * MLCallGraphNode::userData ( ) const
inline

Returns the user data.

Definition at line 134 of file mlCallGraph.h.

Friends And Related Symbol Documentation

◆ MLProfilingManager

Definition at line 152 of file mlCallGraph.h.

◆ MLTimeProfile

Definition at line 153 of file mlCallGraph.h.


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