Global Classes
class qi::MethodStatistics
class qi::MinMaxSum
Stores min, max and sum of values fed to it.
qi::MinMaxSum::
MinMaxSum
()¶Default constructor.
qi::MinMaxSum::
MinMaxSum
(float minValue, float maxValue, float cumulatedValue)¶Brief: Constructor.
Parameters: |
|
---|
qi::MinMaxSum::
minValue
() const
¶Get minimum value.
qi::MinMaxSum::
maxValue
() const
¶Get maximum value.
qi::MinMaxSum::
cumulatedValue
() const
¶Get sum of all value push value.
qi::MinMaxSum::
push
(float val, bool init = false)¶Brief: Push a new value, process new min/max and add the value to cumulated.
Parameters: |
|
---|
qi::MinMaxSum::
reset
()¶Reset all three values to 0.
qi::MinMaxSum::
asString
(unsigned int count) const
¶Brief: asString Get a string from min, max and cumulated.
Parameters: |
|
---|---|
Returns: | A string with format (cumulated / count), min and max In this order separated by space. |
MethodStatistics
()MethodStatistics
(unsigned int count, MinMaxSum wall, MinMaxSum user, MinMaxSum system)push
(float wall, float user, float system)wall
() constuser
() constsystem
() constcount
() constreset
()Store statistics about method calls.
qi::MethodStatistics::
MethodStatistics
()¶Constructor.
qi::MethodStatistics::
MethodStatistics
(unsigned int count, MinMaxSum wall, MinMaxSum user, MinMaxSum system)¶Brief: Constructor and Set.
Parameters: |
|
---|
qi::MethodStatistics::
push
(float wall, float user, float system)¶Brief: Add value for all tree statistics values.
Parameters: |
|
---|
If it’s the fist time that push is call, min, max and cumulated will be set to the value added.
qi::MethodStatistics::
wall
() const
¶Brief: Get wall MinMaxSum value.
Returns: | Return MinMaxSum value. |
---|
qi::MethodStatistics::
user
() const
¶Brief: Get user MinMaxSum value.
Returns: | Return MinMaxSum value. |
---|
qi::MethodStatistics::
system
() const
¶Brief: Get system MinMaxSum value.
Returns: | Return MinMaxSum value. |
---|
qi::MethodStatistics::
count
() const
¶Brief: Get number of value added.
Returns: | Return number of value pushed. |
---|
qi::MethodStatistics::
reset
()¶Reset all value to 0 (count and MinMaxSum of all 3 statistics values)