version 1.28, 2006/08/25 17:40:09
|
version 1.29, 2006/09/08 17:25:01
|
|
|
#ifndef PEGASUS_DISABLE_PERFINST | #ifndef PEGASUS_DISABLE_PERFINST |
| |
#define STAT_GETSTARTTIME \ | #define STAT_GETSTARTTIME \ |
TimeValue startTime = TimeValue::getCurrentTime(); |
Uint64 serverStartTimeMicroseconds = \ |
|
TimeValue::getCurrentTime().toMicroseconds(); |
| |
#define STAT_SERVERSTART \ | #define STAT_SERVERSTART \ |
request->setStartServerTime(startTime); |
request->setServerStartTime(serverStartTimeMicroseconds); |
| |
#define STAT_SERVEREND \ | #define STAT_SERVEREND \ |
response->endServer();\ | response->endServer();\ |
|
|
: _message(message) | : _message(message) |
{ | { |
#ifndef PEGASUS_DISABLE_PERFINST | #ifndef PEGASUS_DISABLE_PERFINST |
_message->startProvider(); |
_startTimeMicroseconds = TimeValue::getCurrentTime().toMicroseconds(); |
#endif | #endif |
} | } |
| |
~StatProviderTimeMeasurement() | ~StatProviderTimeMeasurement() |
{ | { |
#ifndef PEGASUS_DISABLE_PERFINST | #ifndef PEGASUS_DISABLE_PERFINST |
_message->endProvider(); |
_message->setProviderTime( |
|
TimeValue::getCurrentTime().toMicroseconds() - |
|
_startTimeMicroseconds); |
#endif | #endif |
} | } |
| |
|
|
StatProviderTimeMeasurement& operator=(const StatProviderTimeMeasurement&); | StatProviderTimeMeasurement& operator=(const StatProviderTimeMeasurement&); |
| |
CIMMessage* _message; | CIMMessage* _message; |
|
Uint64 _startTimeMicroseconds; |
}; | }; |
| |
class PEGASUS_COMMON_LINKAGE StatisticalData | class PEGASUS_COMMON_LINKAGE StatisticalData |