Modifier

Partager via


CounterSetInstanceType Enum

Definition

Specifies whether the counter set allows multiple instances such as processes and physical disks, or a single instance such as memory.

public enum class CounterSetInstanceType
public enum CounterSetInstanceType
type CounterSetInstanceType = 
Public Enum CounterSetInstanceType
Inheritance
CounterSetInstanceType

Fields

Name Value Description
Single 0

The counter set contains single instance counters, for example, a counter that measures physical memory.

Multiple 2

The counter set contains multiple instance counters, for example, a counter that measures the average disk I/O for a process.

GlobalAggregate 4

The counter set contains single instance counters whose aggregate value is obtained from one or more sources. For example, a counter in this type of counter set might obtain the number of reads from each of the three hard disks on the computer and sum their values.

MultipleAggregate 6

The counter set contains multiple instance counters whose aggregate value is obtained from all instances of the counter. For example, a counter in this type of counter set might obtain the total thread execution time for all threads in a multithreaded application and sum their values.

GlobalAggregateWithHistory 11

This type is similar to GlobalAggregate except that this counter set type stores all counter values for the lifetime of the consumer application (the counter value is cached beyond the lifetime of the counter). For example, if one of the hard disks in the global aggregate example were to become unavailable, the total bytes read by that disk would still be available and used to calculate the aggregate value.

InstanceAggregate 22

This type is similar to MultipleAggregate, except that instead of aggregating all instance data to one aggregated (_Total) instance, it will aggregate counter data from instances of the same name. For example, if multiple provider processes contained instances named IExplore, Multiple and MultipleAggregate CounterSet will show multiple IExplore instances (IExplore, IExplore#1, IExplore#2, and so on); however, a InstanceAggregate instance type will publish only one IExplore instance with aggregated counter data from all instances named IExplore.

Applies to