|
Planeshift
|
Statistics for one operation. More...
#include <psprofile.h>
Public Member Functions | |
| void | AddConsumption (double cons) |
| Use this to notify about resource consumption. | |
| csString | Dump (double totalConsumption, const csString &unitName) |
| Return textual description of consumption statistics where 'totalConsumption' is total consumption of resources by all kinds of operations and 'unitName' contains name of consumption unit (e.g. | |
| double | GetConsumption () |
| psOperProfile (const csString &desc) | |
| void | Reset () |
| Reset consumption counters. | |
Static Public Member Functions | |
| static int | cmpProfs (const void *a, const void *b) |
| Sorting. | |
Protected Attributes | |
| double | consumption |
| number of operations of this kind that took place | |
| double | count |
| textual description | |
| csStringFast< 100 > | desc |
| double | maxCons |
| total resource consumption by this kind of operation | |
Statistics for one operation.
Definition at line 48 of file psprofile.h.
| psOperProfile::psOperProfile | ( | const csString & | desc | ) |
| void psOperProfile::AddConsumption | ( | double | cons | ) |
Use this to notify about resource consumption.
| static int psOperProfile::cmpProfs | ( | const void * | a, |
| const void * | b | ||
| ) | [static] |
Sorting.
| csString psOperProfile::Dump | ( | double | totalConsumption, |
| const csString & | unitName | ||
| ) |
Return textual description of consumption statistics where 'totalConsumption' is total consumption of resources by all kinds of operations and 'unitName' contains name of consumption unit (e.g.
"millisecond")
| double psOperProfile::GetConsumption | ( | ) |
| void psOperProfile::Reset | ( | ) |
Reset consumption counters.
double psOperProfile::consumption [protected] |
number of operations of this kind that took place
Definition at line 72 of file psprofile.h.
double psOperProfile::count [protected] |
textual description
Definition at line 71 of file psprofile.h.
csStringFast<100> psOperProfile::desc [protected] |
Definition at line 70 of file psprofile.h.
double psOperProfile::maxCons [protected] |
total resource consumption by this kind of operation
Definition at line 73 of file psprofile.h.
1.7.3