|
MeVisLab Toolbox Reference
|
#include <mlCallGraph.h>
Public Types | |
| typedef boost::unordered_map< MLCallGraphFunction *, MLTimeStatistics > | CallGraphFunctionMap |
| typedef boost::unordered_map< const MLTimeProfile *, MLTimeStatistics > | TimeStatisticsMap |
Public Member Functions | |
| MLCallGraphFunction (const std::string &name, const std::string &filename, int linenumber, int type) | |
| ~MLCallGraphFunction () | |
| MLCallGraphFunction * | copyWithStatistics () const |
| int | type () const |
| Returns the user ID. | |
| const std::string & | name () const |
| Returns the name of the function. | |
| const std::string & | filename () const |
| Returns the filename of the function. | |
| int | linenumber () const |
| Returns the line number of the function. | |
| MLCallGraphFunction * | cachedCopy (MLCallGraphNode::CallGraphCopyFunctionMap *copyFunctionMap) |
| MLCallGraphFunction * | copiedFrom () const |
| MLCallGraphFunction * | copiedTo () const |
| void | addCallGraphNode (MLCallGraphNode *node) |
| Returns the line number of the function. | |
| void | removeCallGraphNode (MLCallGraphNode *node) |
| Removes a call graph node that represents a function call to this function. | |
| const std::vector< MLCallGraphNode * > & | callGraphNodes () const |
| Returns all call graph nodes. | |
| std::vector< MLCallGraphNode * > & | callGraphNodes () |
| Returns all call graph nodes. | |
| void | addCaller (MLCallGraphFunction *function, MLProfilingTimeType elapsed, MLProfilingTimeType consumed) |
| Adds a caller function. If it is already added, then only the statistics are updated. | |
| const CallGraphFunctionMap & | callers () const |
| Returns the IDs of the functions that called this function. | |
| const CallGraphFunctionMap & | callees () const |
| Returns the IDs of the functions that are called by this function. | |
| const MLTimeStatistics * | statisticsByCaller (MLCallGraphFunction *caller) |
| Returns the statistics of the given caller. | |
| const MLTimeStatistics * | statisticsByCallee (MLCallGraphFunction *callee) |
| Returns the statistics of the given callee. | |
| MLTimeStatistics & | statistics () |
| Returns the time statistics. | |
| const MLTimeStatistics & | statistics () const |
| MLTimeStatistics & | statistics (const MLTimeProfile *timeProfile) |
| @ | |
| const MLTimeStatistics & | statistics (const MLTimeProfile *timeProfile) const |
| bool | hasStatisticsForTimeProfile (const MLTimeProfile *timeProfile) const |
| @ | |
| const TimeStatisticsMap & | statisticsByTimeProfile () const |
Friends | |
| class | MLCallGraphNode |
| class | MLTimeProfile |
Definition at line 167 of file mlCallGraph.h.
| typedef boost::unordered_map<MLCallGraphFunction*, MLTimeStatistics> MLCallGraphFunction::CallGraphFunctionMap |
Definition at line 170 of file mlCallGraph.h.
| typedef boost::unordered_map<const MLTimeProfile*, MLTimeStatistics> MLCallGraphFunction::TimeStatisticsMap |
Definition at line 171 of file mlCallGraph.h.
| MLCallGraphFunction::MLCallGraphFunction | ( | const std::string & | name, |
| const std::string & | filename, | ||
| int | linenumber, | ||
| int | type | ||
| ) |
| MLCallGraphFunction::~MLCallGraphFunction | ( | ) |
| void MLCallGraphFunction::addCaller | ( | MLCallGraphFunction * | function, |
| MLProfilingTimeType | elapsed, | ||
| MLProfilingTimeType | consumed | ||
| ) |
Adds a caller function. If it is already added, then only the statistics are updated.
| void MLCallGraphFunction::addCallGraphNode | ( | MLCallGraphNode * | node | ) |
Returns the line number of the function.
Adds a call graph node that represents a function call to this function.
| MLCallGraphFunction * MLCallGraphFunction::cachedCopy | ( | MLCallGraphNode::CallGraphCopyFunctionMap * | copyFunctionMap | ) |
|
inline |
Returns the IDs of the functions that are called by this function.
Definition at line 215 of file mlCallGraph.h.
|
inline |
Returns the IDs of the functions that called this function.
Definition at line 212 of file mlCallGraph.h.
|
inline |
Returns all call graph nodes.
Definition at line 206 of file mlCallGraph.h.
|
inline |
Returns all call graph nodes.
Definition at line 204 of file mlCallGraph.h.
|
inline |
Definition at line 190 of file mlCallGraph.h.
|
inline |
Definition at line 194 of file mlCallGraph.h.
| MLCallGraphFunction * MLCallGraphFunction::copyWithStatistics | ( | ) | const |
|
inline |
Returns the filename of the function.
Definition at line 184 of file mlCallGraph.h.
| bool MLCallGraphFunction::hasStatisticsForTimeProfile | ( | const MLTimeProfile * | timeProfile | ) | const |
@
|
inline |
Returns the line number of the function.
Definition at line 186 of file mlCallGraph.h.
|
inline |
Returns the name of the function.
Definition at line 182 of file mlCallGraph.h.
| void MLCallGraphFunction::removeCallGraphNode | ( | MLCallGraphNode * | node | ) |
Removes a call graph node that represents a function call to this function.
|
inline |
|
inline |
Definition at line 226 of file mlCallGraph.h.
|
inline |
@
Returns the time statistics for the given time profile. @
Definition at line 231 of file mlCallGraph.h.
|
inline |
Definition at line 232 of file mlCallGraph.h.
| const MLTimeStatistics * MLCallGraphFunction::statisticsByCallee | ( | MLCallGraphFunction * | callee | ) |
Returns the statistics of the given callee.
| const MLTimeStatistics * MLCallGraphFunction::statisticsByCaller | ( | MLCallGraphFunction * | caller | ) |
Returns the statistics of the given caller.
|
inline |
Definition at line 237 of file mlCallGraph.h.
|
inline |
Returns the user ID.
Definition at line 180 of file mlCallGraph.h.
|
friend |
Definition at line 258 of file mlCallGraph.h.
|
friend |
Definition at line 259 of file mlCallGraph.h.