version 1.17, 2005/06/07 02:24:56
|
version 1.18, 2005/07/22 23:22:12
|
|
|
#define STAT_BYTESSENT \ | #define STAT_BYTESSENT \ |
Uint16 statType = (response->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ | Uint16 statType = (response->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ |
response->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE:response->getType() - 1;\ | response->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE:response->getType() - 1;\ |
StatisticalData::current()->addToValue(message.size(), statType, StatisticalData::BYTES_SENT); |
StatisticalData::current()->addToValue(message.size(), statType, StatisticalData::PEGASUS_STATDATA_BYTES_SENT); |
| |
| |
| |
|
|
Uint16 statType = (request->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ | Uint16 statType = (request->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ |
request->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE: request->getType()-1;\ | request->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE: request->getType()-1;\ |
StatisticalData::current()->requSize = contentLength; \ | StatisticalData::current()->requSize = contentLength; \ |
StatisticalData::current()->addToValue(contentLength, statType, StatisticalData::BYTES_READ); |
StatisticalData::current()->addToValue(contentLength, statType, StatisticalData::PEGASUS_STATDATA_BYTES_READ); |
| |
| |
| |
|
|
}; | }; |
| |
enum StatDataType{ | enum StatDataType{ |
SERVER, |
PEGASUS_STATDATA_SERVER, |
PROVIDER, |
PEGASUS_STATDATA_PROVIDER, |
BYTES_SENT, |
PEGASUS_STATDATA_BYTES_SENT, |
BYTES_READ |
PEGASUS_STATDATA_BYTES_READ |
}; | }; |
| |
static const Uint32 length; | static const Uint32 length; |