Store statistics about method calls.
More...
#include <stats.hpp>
Store statistics about method calls.
Definition at line 78 of file stats.hpp.
qi::MethodStatistics::MethodStatistics |
( |
| ) |
|
|
inline |
Constructor and Set.
- Parameters
-
count | Number of value added. |
wall | Wall statistics. |
user | User statistics. |
system | System statistics. |
Definition at line 91 of file stats.hpp.
const unsigned int& qi::MethodStatistics::count |
( |
| ) |
const |
|
inline |
Get number of value added.
- Returns
- Return number of value pushed.
Definition at line 131 of file stats.hpp.
void qi::MethodStatistics::push |
( |
float |
wall, |
|
|
float |
user, |
|
|
float |
system |
|
) |
| |
|
inline |
Add value for all tree statistics values.
If it's the fist time that push is call, min, max and cumulated will be set to the value added.
- Parameters
-
wall | Value to add to wall statistics. |
user | Value to add to user statistics. |
system | Value to add to system statistics. |
Definition at line 105 of file stats.hpp.
void qi::MethodStatistics::reset |
( |
| ) |
|
|
inline |
Reset all value to 0 (count and MinMaxSum of all 3 statistics values)
Definition at line 135 of file stats.hpp.
const MinMaxSum& qi::MethodStatistics::system |
( |
| ) |
const |
|
inline |
const MinMaxSum& qi::MethodStatistics::user |
( |
| ) |
const |
|
inline |
const MinMaxSum& qi::MethodStatistics::wall |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- /home/opennao/work/release-2.8/sdk/libqi/qi/stats.hpp