CounterSetInstanceType 枚举

定义

指定计数器集是允许多实例(如进程和物理磁盘),还是允许单实例(如内存)。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
继承
CounterSetInstanceType

字段

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.

GlobalAggregateWithHistory 11

此类型与 GlobalAggregate 相似,只是这种类型的计数器集存储使用者应用程序生存期的所有计数器值(计数器值将在超出计数器生存期之后进行缓存)。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

此类型与 MultipleAggregate 相似,只是它将聚合来自同名实例的计数器数据,而不会将所有实例数据聚合到一个经过聚合的 (_Total) 实例。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. 例如,如果多个提供程序进程中都包含了名为 IExplore 的实例,则 MultipleMultipleAggregate CounterSet 将显示多个 IExplore 实例(IExplore、IExplore#1、IExplore#2 等);但是,InstanceAggregate 实例类型将只发布一个 IExplore 实例,该实例的聚合计数器数据来自所有名为 IExplore 的实例。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 2

该计数器集中包含多个多实例计数器,例如,测量进程的平均磁盘 I/O 的计数器。The counter set contains multiple instance counters, for example, a counter that measures the average disk I/O for a process.

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.

Single 0

该计数器集中包含多个单实例计数器,例如,测量物理内存的计数器。The counter set contains single instance counters, for example, a counter that measures physical memory.

适用于