CounterSetInstanceType Enumeration

 

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

Namespace:   System.Diagnostics.PerformanceData
Assembly:  System.Core (in System.Core.dll)

Public Enumeration CounterSetInstanceType

Member nameDescription
GlobalAggregate

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.

GlobalAggregateWithHistory

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

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.

Multiple

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

MultipleAggregate

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.

Single

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

.NET Framework
Available since 3.5
Return to top
Show: