#include <mlMetaProfile.h>
|
| const std::vector< MLMetaProfile * > & | getSubMetaProfiles () const |
| | Returns the submetaprofiles.
|
| void | addSubMetaProfile (MLMetaProfile *subMetaProfile) |
| | Adds a submetaprofile.
|
| MLCountProfile * | createCountProfile (const std::string &key) |
| MLCountProfile * | getCountProfile (const std::string &key) const |
| bool | incrementCountValue (const std::string &key) |
| MLProfilingCountType | getCountValue (const std::string &key, bool *ok=nullptr) const |
| const MLCountProfileMap & | getCountProfileMap () const |
| | Returns the map which contains count profiles by functions.
|
| void | setCountProfileDescription (const std::string &key, const std::string &description) |
| MLMemoryProfile * | createMemoryProfile (const std::string &key, MLCurrentlyUsedMemoryTracker *tracker) |
| MLMemoryProfile * | getMemoryProfile (const std::string &key) const |
| bool | addMemory (const std::string &key, MLProfilingMemoryType memory) |
| MLProfilingMemoryType | getMemory (const std::string &key, bool *ok=nullptr) const |
| MLProfilingMemoryType | getAllMemory () const |
| | Returns the sum of the overall used memory of all memory profiles.
|
| MLProfilingMemoryType | getCurrentlyUsedMemory (const std::string &key, bool *ok=nullptr) const |
| MLProfilingMemoryType | getAllCurrentlyUsedMemory () const |
| | Returns the sum of the currently used memory of all memory profiles.
|
| const MLMemoryProfileMap & | getMemoryProfileMap () const |
| | Returns the map which contains memory profiles by functions.
|
| void | setMemoryProfileDescription (const std::string &key, const std::string &description) |
| MLTimeProfileHandle | startMeasuring (const std::string &function, int userId, void *userData=nullptr, const std::string &filename="", int linenumber=-1, const std::string &nodeInfo="") |
| void | stopMeasuring (MLTimeProfileHandle &handle, bool ignoreIfEmpty=false) |
| MLTimeProfile * | getTimeProfile () const |
| | Returns the time profile.
|
| void | setDescription (const std::string &description_) |
| | Sets the metaprofile's description.
|
| const std::string & | description () const |
| | Returns the metaprofile's description.
|
| | ~MLMetaProfile () |
Definition at line 35 of file mlMetaProfile.h.
◆ MLProfilingFunctionType
| Enumerator |
|---|
| MLCall | |
| PythonCall | |
| FieldNotificationCall | |
| CppCall | |
| GLRenderCall | |
| PythonQtCall | |
| MLWEMCall | |
| MDLCommandCall | |
| MainFunctionCall | |
| CallTypeCount | |
Definition at line 38 of file mlMetaProfile.h.
◆ ~MLMetaProfile()
| MLMetaProfile::~MLMetaProfile |
( |
| ) |
|
◆ addMemory()
Adds allocated memory to a memory profile.
- Parameters
-
| key | The key that identifies the memory profile. |
| memory | The amount of newly allocated memory. |
- Returns
true if the memory profile does exist; otherwise, it returns false.
◆ addSubMetaProfile()
| void MLMetaProfile::addSubMetaProfile |
( |
MLMetaProfile * | subMetaProfile | ) |
|
|
inline |
◆ createCountProfile()
| MLCountProfile * MLMetaProfile::createCountProfile |
( |
const std::string & | key | ) |
|
Creates a count profile.
- Parameters
-
| key | The key that identifies the count profile. |
- Returns
- NULL if either no memory is available, or if a count profile with the given key already exists.
◆ createMemoryProfile()
Creates a memory profile.
- Parameters
-
| key | The key that identifies the memory profile. |
| tracker | The MLCurrentlyUsedMemoryTracker must be set, which is required to read the currently used amount of memory. |
- Returns
- NULL if either no memory is available, or if a memory profile with the given key already exists.
◆ description()
| const std::string & MLMetaProfile::description |
( |
| ) |
const |
|
inline |
◆ functionTypeToString()
◆ getAllCurrentlyUsedMemory()
Returns the sum of the currently used memory of all memory profiles.
◆ getAllMemory()
Returns the sum of the overall used memory of all memory profiles.
◆ getCountProfile()
| MLCountProfile * MLMetaProfile::getCountProfile |
( |
const std::string & | key | ) |
const |
Returns a count profile, or NULL if it does not exist.
- Parameters
-
| key | The key that identifies the count profile. |
◆ getCountProfileMap()
Returns the map which contains count profiles by functions.
Definition at line 86 of file mlMetaProfile.h.
◆ getCountValue()
| MLProfilingCountType MLMetaProfile::getCountValue |
( |
const std::string & | key, |
|
|
bool * | ok = nullptr ) const |
Returns the current value of a count profile.
- Parameters
-
| key | The key that identifies the count profile. |
| ok | If ok is a valid pointer, then it will be set to false if no count profile with the given key exists. |
- Returns
- The current count profile value, or std::numeric_limits<MLProfilingCountType>::max() if the count profile does not exist.
◆ getCurrentlyUsedMemory()
| MLProfilingMemoryType MLMetaProfile::getCurrentlyUsedMemory |
( |
const std::string & | key, |
|
|
bool * | ok = nullptr ) const |
Returns the currently used memory in bytes of a memory profile.
- Parameters
-
| key | The key that identifies the memory profile. |
| ok | If ok is a valid pointer, then it will be set to false if no memory profile with the given key exists. |
- Returns
- The currently used memory, or std::numeric_limits<MLProfilingMemoryType>::max() if the memory profile does not exist.
◆ getMemory()
Returns the overall used memory in bytes of a memory profile.
- Parameters
-
| key | The key that identifies the memory profile. |
| ok | If ok is a valid pointer, then it will be set to false if no memory profile with the given key exists. |
- Returns
- The added memory since instantiation/last reset, or std::numeric_limits<MLProfilingMemoryType>::max() if the memory profile does not exist.
◆ getMemoryProfile()
| MLMemoryProfile * MLMetaProfile::getMemoryProfile |
( |
const std::string & | key | ) |
const |
Returns a memory profile, or NULL if it does not exist.
- Parameters
-
| key | The key that identifies the memory profile. |
◆ getMemoryProfileMap()
Returns the map which contains memory profiles by functions.
Definition at line 140 of file mlMetaProfile.h.
◆ getSubMetaProfiles()
| const std::vector< MLMetaProfile * > & MLMetaProfile::getSubMetaProfiles |
( |
| ) |
const |
|
inline |
◆ getTimeProfile()
◆ incrementCountValue()
| bool MLMetaProfile::incrementCountValue |
( |
const std::string & | key | ) |
|
Increments the count profile value by 1.
- Parameters
-
| key | The key that identifies the count profile. |
- Returns
true if the count profile does exist; otherwise, it returns false.
◆ setCountProfileDescription()
| void MLMetaProfile::setCountProfileDescription |
( |
const std::string & | key, |
|
|
const std::string & | description ) |
Sets the description of the count profile.
- Parameters
-
| key | The key that identifies the count profile. |
References description().
◆ setDescription()
| void MLMetaProfile::setDescription |
( |
const std::string & | description_ | ) |
|
|
inline |
◆ setMemoryProfileDescription()
| void MLMetaProfile::setMemoryProfileDescription |
( |
const std::string & | key, |
|
|
const std::string & | description ) |
Sets the description of the memory profile.
- Parameters
-
| key | The key that identifies the memory profile. |
References description().
◆ startMeasuring()
| MLTimeProfileHandle MLMetaProfile::startMeasuring |
( |
const std::string & | function, |
|
|
int | userId, |
|
|
void * | userData = nullptr, |
|
|
const std::string & | filename = "", |
|
|
int | linenumber = -1, |
|
|
const std::string & | nodeInfo = "" ) |
|
inline |
◆ stopMeasuring()
Stops measuring time and associates the elapsed time.
- Parameters
-
Definition at line 168 of file mlMetaProfile.h.
◆ MLMetaProfilePtr
◆ MLProfilingManager
The documentation for this class was generated from the following file: