#include <PerfData.h>
Public Member Functions | |
| CPerfObject (CPerfData *perfData, CPerfData::ObjectId objectId, LPCWSTR name, LPCWSTR help, DWORD detailLevel, CPerfData::CounterId defaultCounterId, DWORD maxInstances, DWORD maxInstanceName) | |
| Constructs a new performance object. | |
| DWORD | addCounter (CPerfCounter *counter) |
| Add a new counter to this object; should only be called during construction. | |
| void | setNext (CPerfObject *next) |
| Set the next object in the chain; should only be called during construction. | |
| void | setTitleInfo (DWORD titleIndex, DWORD helpTitleIndex) |
| Set the title/help indexes for this object. | |
| void | setPerfInstanceInfo (BYTE *firstInstance, DWORD instanceSize) |
| Set the offset of the object's instances in the shared memory section. | |
| void | setPerfType (PERF_OBJECT_TYPE *type) |
| Set the initial structure for this object. | |
| bool | getFreeInstance (PERF_INSTANCE_DEFINITION **instance, CPerfData::InstanceId *instanceId) |
| Find a free instance for this object. | |
| DWORD | getPerfInstanceIndex (CPerfData::InstanceId instanceId) |
| Get the index of the given instance in the output data. | |
| BYTE * | getCounter (CPerfData::InstanceId instanceId, CPerfData::CounterId counterId) |
| Get the address of a counter value. | |
| void | removeInstance (CPerfData::InstanceId instanceId) |
| Remove the instance with the given id (clears the in-use flag). | |
| CPerfCounter * | getCounterById (CPerfData::CounterId counterId) |
| Get a counter by ID. | |
| CPerfObject * | getNext () const |
| Return the next performance object in the chain. | |
| CPerfCounter * | getFirstCounter () const |
| Return the first counter for this object. | |
| CPerfData::ObjectId | getId () const |
| Return the id of this object. | |
| LPCWSTR | getName () const |
| Return the name of this object. | |
| LPCWSTR | getHelp () const |
| Return the help string for this object. | |
| DWORD | getDetailLevel () const |
| Return the detail level (as used by perfmon) for this object. | |
| CPerfData::CounterId | getDefaultCounterId () const |
| Return the default counter for this object. | |
| DWORD | getMaxInstances () const |
| Get the maximum number of instances for this object. | |
| bool | singleInstance () const |
| See if the object supports instances. | |
| DWORD | getMaxInstanceName () const |
| Get the maximum number of characters in an instance name, including the terminating NULL. | |
| DWORD | getTitleIndex () const |
| Return the title index for this object. | |
| DWORD | getHelpTitleIndex () const |
| Return the help title index for this object. | |
| DWORD | collect (CPerfData *perfData, LPVOID *pBuffer, LPDWORD pBytes) |
| Collect performance data for this object. | |
| void | setCollect (bool fCollect) |
| Set the collect flag. | |
| bool | getCollect () const |
| Get the collect flag. | |
| void | checkChildDependencies (CPerfData *perfData) |
| See if the object has any instances that refer to parents: if so, set the collect flag on these objects also. | |
| DWORD | getCountersWithData () const |
| Get the number of counters with data for this object This is used to compute how much space to allocate for the counter data. | |
|
||||||||||||||||||||||||||||||||||||
|
Constructs a new performance object.
|
|
|
See if the object has any instances that refer to parents: if so, set the collect flag on these objects also.
|
|
||||||||||||||||
|
Collect performance data for this object.
|
|
||||||||||||
|
Get the address of a counter value.
|
|
||||||||||||
|
Find a free instance for this object.
|
|
|
Get the maximum number of instances for this object. If the object does not support instances, then the return is PERF_NO_INSTANCES |
|
||||||||||||
|
Set the offset of the object's instances in the shared memory section.
|
|
|
Set the initial structure for this object.
|
1.3.9.1