A high level profile ID. More...
#include <profile_highlevel.h>
Public Member Functions | |
| Id (void) | |
| void | Increment (double add=1.0) |
| Increment the internal profile value. | |
| void | SetMax (double max) |
| Set a new maximum value. | |
| const char * | GetName (void) const |
| Returns the internal Id name. | |
| const char * | GetDescr (void) const |
| Returns the descriptive name. | |
| const char * | GetUnit (void) const |
| Returns the value's unit text. | |
| const char * | GetCurrentValue (void) const |
| Returns the current value. | |
| const char * | GetValue (unsigned frame) const |
| Returns the value for the given recorded frame/range. | |
| const char * | GetTotalValue (void) const |
| Returns the total value for all frames. | |
A high level profile ID.
Definition at line 52 of file profile_highlevel.h.
|
inline |
Definition at line 57 of file profile_highlevel.h.
| const char * ProfileHighLevel::Id::GetCurrentValue | ( | void | ) | const |
Returns the current value.
'Current' means the value since the last call to this function for the same Id.
This function is intended for displaying profile data while the application is running.
Definition at line 66 of file profile_highlevel.cpp.
| const char * ProfileHighLevel::Id::GetDescr | ( | void | ) | const |
Returns the descriptive name.
Definition at line 56 of file profile_highlevel.cpp.
| const char * ProfileHighLevel::Id::GetName | ( | void | ) | const |
Returns the internal Id name.
Definition at line 51 of file profile_highlevel.cpp.
| const char * ProfileHighLevel::Id::GetTotalValue | ( | void | ) | const |
Returns the total value for all frames.
This even includes data collected while no frames have been recorded.
Definition at line 79 of file profile_highlevel.cpp.
| const char * ProfileHighLevel::Id::GetUnit | ( | void | ) | const |
Returns the value's unit text.
Definition at line 61 of file profile_highlevel.cpp.
| const char * ProfileHighLevel::Id::GetValue | ( | unsigned | frame | ) | const |
Returns the value for the given recorded frame/range.
| frame | number of recorded frame/range |
Definition at line 71 of file profile_highlevel.cpp.
| void ProfileHighLevel::Id::Increment | ( | double | add = 1.0 | ) |
Increment the internal profile value.
| add | amount to add to internal profile value |
Definition at line 39 of file profile_highlevel.cpp.
| void ProfileHighLevel::Id::SetMax | ( | double | max | ) |
Set a new maximum value.
This function sets a new maximum value (if the value passed in is actually larger than the current max value).
| max | new maximum value (if larger than current max value, otherwise current max value is left unchanged) |
Definition at line 45 of file profile_highlevel.cpp.