#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.
|
|
const MLMetaProfile * | metaProfile () const |
| Returns the meta profile. Don't 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.
|
|
const MLCallGraphFunctionMap & | functionMap () 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::~MLTimeProfile |
( |
| ) |
|
◆ addTimeToFunction()
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 93 of file mlTimeProfile.h.
◆ allElapsedTime()
Returns the sum of the elapsed time of all functions in seconds.
Definition at line 90 of file mlTimeProfile.h.
◆ callGraph()
Returns the timer tree root.
◆ deinitialize()
Static deinitialization, is called by the profiling manager.
◆ disableTracing()
◆ enableTracing()
Enable call tracing and set the trace filname.
◆ functionMap()
◆ getFunctionForTesting()
Returns the function pointer or NULL.
◆ getFunctionGlobal()
Returns the function pointer or NULL.
◆ globalElapsedTime()
Returns the global elapsed time in seconds.
◆ globalFunctionList()
◆ globalFunctionMap()
◆ initialize()
Static initialization, is called by the profiling manager.
◆ isTracingEnabled()
◆ metaProfile()
Returns the meta profile. Don't assume that the pointer is valid!
◆ reset()
void MLTimeProfile::reset |
( |
| ) |
|
◆ setReduceCallGraph()
◆ shouldReduceCallGraph()
static bool MLTimeProfile::shouldReduceCallGraph |
( |
| ) |
|
|
inlinestatic |
◆ startMeasuring()
Starts measuring time.
- Parameters
-
id | The id identifies the function. |
- Returns
- Returns the MLTimeProfileHandle, which is required to stop the measurement.
◆ stopMeasuring()
Stops measuring time and associates the elapsed time.
- Parameters
-
◆ MLABModuleProfile
◆ MLAccumulatedProfile
◆ MLCallGraphNode
◆ MLProfilingManager
◆ mainFunction
The documentation for this class was generated from the following file: