MeVisLab Toolbox 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 () | |
MLCallGraphNode * | createChild (MLTimeProfile *timeProfile, const MLCallGraphFunctionPtr &function, void *userData, const std::string &nodeInfo) |
const MLTimer & | timer () const |
const MLTimeProfile * | timeProfile () const |
const MLCallGraphFunctionPtr & | function () const |
void | clearFunctionRecursive () |
const std::vector< MLCallGraphNode * > & | children () const |
MLCallGraphNode * | parent () const |
bool | isRecursive (const MLTimeProfile *timeProfile) const |
Returns true if the node is a recursive call of its function regarding the time profile. More... | |
bool | isRecursive () const |
Returns true if the node is a recursive call of its function. More... | |
void | print (std::ostream &out, const std::string &indent="") const |
void | printTrace (std::ostream &out) const |
Prints the current call graph node for tracing. More... | |
void | removeFromParent () |
Removes the node from its parent. More... | |
const MLTimeStatistics & | statistics () const |
Returns the time statistics of the call graph node. More... | |
void * | userData () const |
Returns the user data. More... | |
const std::string & | nodeInfo () const |
Returns the node info. More... | |
void | clearUserData () |
Clears the user data. More... | |
Friends | |
class | MLProfilingManager |
class | MLTimeProfile |
Definition at line 93 of file mlCallGraph.h.
MLCallGraphNode::MLCallGraphNode | ( | MLTimeProfile * | timeProfile = nullptr , |
MLCallGraphNode * | parent = nullptr , |
||
void * | userData = nullptr , |
||
const MLCallGraphFunctionPtr & | callGraphFunction = MLCallGraphFunctionPtr() , |
||
const std::string & | nodeInfo = "" |
||
) |
MLCallGraphNode::~MLCallGraphNode | ( | ) |
|
inline |
Definition at line 110 of file mlCallGraph.h.
void MLCallGraphNode::clearFunctionRecursive | ( | ) |
|
inline |
Clears the user data.
Definition at line 140 of file mlCallGraph.h.
MLCallGraphNode* MLCallGraphNode::createChild | ( | MLTimeProfile * | timeProfile, |
const MLCallGraphFunctionPtr & | function, | ||
void * | userData, | ||
const std::string & | nodeInfo | ||
) |
|
inline |
Definition at line 108 of file mlCallGraph.h.
|
inline |
Returns true if the node is a recursive call of its function.
Definition at line 244 of file mlCallGraph.h.
|
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.
|
inline |
Returns the node info.
Definition at line 137 of file mlCallGraph.h.
|
inline |
Definition at line 111 of file mlCallGraph.h.
void MLCallGraphNode::print | ( | std::ostream & | out, |
const std::string & | indent = "" |
||
) | const |
void MLCallGraphNode::printTrace | ( | std::ostream & | out | ) | const |
Prints the current call graph node for tracing.
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.
|
inline |
Returns the time statistics of the call graph node.
Definition at line 131 of file mlCallGraph.h.
|
inline |
Definition at line 107 of file mlCallGraph.h.
|
inline |
Definition at line 106 of file mlCallGraph.h.
|
inline |
Returns the user data.
Definition at line 134 of file mlCallGraph.h.
|
friend |
Definition at line 152 of file mlCallGraph.h.
|
friend |
Definition at line 153 of file mlCallGraph.h.