#include <mlTimeProfile.h>
|
| | MLTimeProfile (const MLMetaProfile *metaProfile=nullptr) |
| |
| | ~MLTimeProfile () |
| |
| MLTimeProfileHandle | startMeasuring (const std::string &function, int userId, void *userData, const std::string &filename, int linenumber, const std::string &nodeInfo="") |
| | Starts measuring time.
|
| |
| void | stopMeasuring (MLTimeProfileHandle &handle, bool ignoreIfEmpty=false) |
| | Stops measuring time and associates the elapsed time.
|
| |
| void | addTimeToFunction (const std::string &function, int userId, const std::string &filename, int linenumber, MLProfilingTimeType time, int callCount) |
| | Adds time to the given function, without measuring and without putting the function onto the call stack.
|
| |
| void | reset () |
| | Resets the time profile.
|
| |
| void | makeSnapshot () |
| |
| const MLMetaProfile * | metaProfile () const |
| | Returns the metaprofile. Do not assume that the pointer is valid!
|
| |
| MLProfilingTimeType | allElapsedTime () const |
| | Returns the sum of the elapsed time of all functions in seconds.
|
| |
| MLProfilingTimeType | allConsumedTime () const |
| | Returns the sum of the consumed time of all functions in seconds.
|
| |
| MLProfilingTimeType | allElapsedTimeSnapshot () const |
| | Returns snapshot of the sum of the elapsed time of all functions in seconds.
|
| |
| MLProfilingTimeType | allConsumedTimeSnapshot () const |
| | Returns snapshot of the sum of the consumed time of all functions in seconds.
|
| |
| const MLCallGraphFunctionSet & | usedFunctions () const |
| | Returns the function map.
|
| |
| MLCallGraphFunctionPtr | getFunctionForTesting (const std::string &function) const |
| | Returns the function pointer or NULL.
|
| |
Definition at line 54 of file mlTimeProfile.h.
◆ MLTimeProfile()
| MLTimeProfile::MLTimeProfile |
( |
const MLMetaProfile * |
metaProfile = nullptr | ) |
|
◆ ~MLTimeProfile()
| MLTimeProfile::~MLTimeProfile |
( |
| ) |
|
◆ addTimeToFunction()
| void MLTimeProfile::addTimeToFunction |
( |
const std::string & |
function, |
|
|
int |
userId, |
|
|
const std::string & |
filename, |
|
|
int |
linenumber, |
|
|
MLProfilingTimeType |
time, |
|
|
int |
callCount |
|
) |
| |
Adds time to the given function, without measuring and without putting the function onto the call stack.
This can be used to integrate times from other threads.
◆ allConsumedTime()
Returns the sum of the consumed time of all functions in seconds.
Definition at line 95 of file mlTimeProfile.h.
◆ allConsumedTimeSnapshot()
Returns snapshot of the sum of the consumed time of all functions in seconds.
Definition at line 104 of file mlTimeProfile.h.
◆ allElapsedTime()
Returns the sum of the elapsed time of all functions in seconds.
Definition at line 92 of file mlTimeProfile.h.
◆ allElapsedTimeSnapshot()
Returns snapshot of the sum of the elapsed time of all functions in seconds.
Definition at line 98 of file mlTimeProfile.h.
◆ callGraph()
Returns the timer tree root.
◆ callGraphCopy()
Returns the timer copy tree root.
◆ deinitialize()
| static void MLTimeProfile::deinitialize |
( |
| ) |
|
|
static |
Static deinitialization, is called by the profiling manager.
◆ disableTracing()
| static void MLTimeProfile::disableTracing |
( |
| ) |
|
|
static |
◆ enableTracing()
| static void MLTimeProfile::enableTracing |
( |
const char * |
filename | ) |
|
|
static |
Enables call tracing and set the trace filname.
◆ getFunctionForTesting()
Returns the function pointer or NULL.
◆ getFunctionGlobal()
| static MLCallGraphFunctionPtr MLTimeProfile::getFunctionGlobal |
( |
const std::string & |
function, |
|
|
const std::string & |
filename, |
|
|
int |
linenumber |
|
) |
| |
|
static |
Returns the function pointer or NULL.
◆ globalElapsedTime()
Returns the global elapsed time in seconds.
◆ globalFunctionList()
◆ globalFunctionListCopy()
◆ globalFunctionMap()
◆ initialize()
| static void MLTimeProfile::initialize |
( |
| ) |
|
|
static |
Static initialization, is called by the profiling manager.
◆ isTracingEnabled()
| static bool MLTimeProfile::isTracingEnabled |
( |
| ) |
|
|
inlinestatic |
◆ makeSnapshot()
| void MLTimeProfile::makeSnapshot |
( |
| ) |
|
◆ metaProfile()
Returns the metaprofile. Do not assume that the pointer is valid!
◆ refreshCallGraphCopy()
| static void MLTimeProfile::refreshCallGraphCopy |
( |
| ) |
|
|
static |
Resets the timer copy tree root.
◆ reset()
| void MLTimeProfile::reset |
( |
| ) |
|
◆ resetGlobalFunctionListCopy()
| static void MLTimeProfile::resetGlobalFunctionListCopy |
( |
| ) |
|
|
static |
◆ setReduceCallGraph()
| static void MLTimeProfile::setReduceCallGraph |
( |
bool |
reduceCallGraph | ) |
|
|
inlinestatic |
Sets whether the call graph should be reduced.
Definition at line 141 of file mlTimeProfile.h.
◆ shouldReduceCallGraph()
| static bool MLTimeProfile::shouldReduceCallGraph |
( |
| ) |
|
|
inlinestatic |
Returns whether the call graph should be reduced.
Definition at line 144 of file mlTimeProfile.h.
◆ startMeasuring()
| MLTimeProfileHandle MLTimeProfile::startMeasuring |
( |
const std::string & |
function, |
|
|
int |
userId, |
|
|
void * |
userData, |
|
|
const std::string & |
filename, |
|
|
int |
linenumber, |
|
|
const std::string & |
nodeInfo = "" |
|
) |
| |
Starts measuring time.
- Parameters
-
| id | The ID identifies the function. |
- Returns
- The MLTimeProfileHandle that is required to stop the measurement.
◆ stopMeasuring()
Stops measuring time and associates the elapsed time.
- Parameters
-
◆ usedFunctions()
◆ MLABModuleProfile
| friend class MLABModuleProfile |
|
friend |
◆ MLAccumulatedProfile
◆ MLCallGraphNode
◆ MLProfilingManager
◆ mainFunction
The documentation for this class was generated from the following file: