CounterType 枚举

定义

定义可能的计数器类型。 每个计数器都被分配一个计数器类型。 计数器类型用来确定如何计算和显示计数器数据以及如何对其求平均值。The counter type determines how the counter data is calculated, averaged, and displayed.

public enum class CounterType
public enum CounterType
type CounterType = 
Public Enum CounterType
继承
CounterType

字段

AverageBase 1073939458

该计数器在为 AverageCount64AverageTimer32 计数器类型计算时间或统计平均值时用作基数(分母)。This counter is used as the base data (denominator) in the computation of time or count averages for the AverageCount64 and AverageTimer32 counter types. 该计数器类型仅收集最后观测到的值This counter type collects the last observed value only. (请参见部署工具包中的 PERF_AVERAGE_BASE 计数器类型)。(See the PERF_AVERAGE_BASE counter type in the deployment kit.)

AverageCount64 1073874176

该计数器类型显示一次操作中平均处理的项数。This counter type shows how many items are processed, on average, during an operation. 这种类型的计数器显示已处理的项(例如已发送的字节数)与已完成的操作数的比率。Counters of this type display a ratio of the items processed (such as bytes sent) to the number of operations completed. 计算该比率的方法是将上一个时间间隔内处理的项数与上一个时间间隔内完成的操作数进行比较The ratio is calculated by comparing the number of items processed during the last interval to the number of operations completed during the last interval. (请参见部署工具包中的 PERF_AVERAGE_BULK 计数器类型)。(See the PERF_AVERAGE_BULK counter type in the deployment kit.)

AverageTimer32 805438464

这种类型的计数器测量完成某个过程或操作平均所花费的时间。This counter type measures the average time it takes to complete a process or operation. 这种类型的计数器显示采样时间间隔的总运行时间与该时间内完成的进程或操作数的比率。Counters of this type display a ratio of the total elapsed time of the sample interval to the number of processes or operations completed during that time. 此计数器类型用系统时钟的滴答来测量时间This counter type measures time in ticks of the system clock. (请参见部署工具包中的 PERF_AVERAGE_TIMER 计数器类型)。(See the PERF_AVERAGE_TIMER counter type in the deployment kit.)

Delta32 4195328

这种类型的计数器显示在最近的两个取样时间间隔内已测量特性发生的更改。This counter type shows the change in the measured attribute between the two most recent sample intervals. (请参见部署工具包中的 PERF_COUNTER_DELTA 计数器类型)。(See the PERF_COUNTER_DELTA counter type in the deployment kit.)

Delta64 4195584

这种类型的计数器显示在最近的两个取样时间间隔内已测量特性发生的更改。This counter type shows the change in the measured attribute between the two most recent sample intervals. 它与 Delta32 计数器类型基本相同,只是它使用更大的字段来容纳较大的值It is the same as the Delta32 counter type, except that it uses larger fields to accommodate larger values. (请参见部署工具包中的 PERF_COUNTER_LARGE_DELTA 计数器类型)。(See the PERF_COUNTER_LARGE_DELTA counter type in the deployment kit.)

ElapsedTime 807666944

这种类型的计数器显示从启动组件或进程到计算该值之间经历的总时间This counter type shows the total time between when the component or process started and the time when this value is calculated. (请参见部署工具包中的 PERF_ELAPSED_TIME 计数器类型)。(See the PERF_ELAPSED_TIME counter type in the deployment kit.)

LargeQueueLength 4523264

这种类型的计数器监视一段时间内资源队列的平均长度。This counter type monitors the average length of a queue to a resource over time. 这种类型的计数器显示在最近两个采用间隔内观测到的队列长度分别除以间隔时间后的差值。Counters of this type display the difference between the queue lengths observed during the last two sample intervals, divided by the duration of the interval. 此计数器类型与 QueueLength 计数器类型基本相同,只是它使用更大的字段来容纳较大的值This counter type is the same as the QueueLength counter type, except that it uses larger fields to accommodate larger values. (请参见部署工具包中的 PERF_COUNTER_LARGE_QUEUELEN_TYPE 计数器类型)。(See the PERF_COUNTER_LARGE_QUEUELEN_TYPE counter type in the deployment kit.)

MultiTimerBase 1107494144

指示已取样的项数。Indicates the number of items sampled. 它在计算中用作分母,以在获取多个相似项的计时时间时获取已取样各项的平均值。It is used as the denominator in the calculations to get an average among the items sampled when taking timings of multiple, but similar, items. 此类型支持下列计数器类型:MultiTimerPercentageActiveMultiTimerPercentageNotActiveMultiTimerPercentageActive100NsMultiTimerPercentageNotActive100NsThis type supports the following counter types: MultiTimerPercentageActive, MultiTimerPercentageNotActive, MultiTimerPercentageActive100Ns, and MultiTimerPercentageNotActive100Ns.

MultiTimerPercentageActive 574686464

此计数器的类型是多项计时器。This counter type is a multitimer. 多项计时器从组件(如处理器或磁盘)的多个实例中收集数据。Multitimers collect data from more than one instance of a component, such as a processor or disk. 这种类型的计数器以取样时间间隔总时间百分比的形式显示一个或多个组件处于活动状态的时间。Counters of this type display the active time of one or more components as a percentage of the total time of the sample interval. 由于分子记录的是同时操作的组件的活动时间,因此最终的百分比可以超过 100%。Because the numerator records the active time of components operating simultaneously, the resulting percentage can exceed 100 percent. 此计数器类型与 MultiTimerPercentageActive100Ns 的不同之处在于:它以系统性能计时器的滴答为单位(而不是以 100 毫微秒为单位)来测量时间This counter type differs from MultiTimerPercentageActive100Ns in that it measures time in units of ticks of the system performance timer, rather than in 100 nanosecond units. (请参见部署工具包中的 PERF_COUNTER_MULTI_TIMER 计数器类型)。(See the PERF_COUNTER_MULTI_TIMER counter type in the deployment kit.)

MultiTimerPercentageActive100Ns 575735040

这种类型的计数器以取样时间间隔总时间百分比的形式显示一个或多个组件处于活动状态的时间。This counter type shows the active time of one or more components as a percentage of the total time of the sample interval. 它以 100 纳秒为单位来测量时间。It measures time in 100 nanosecond units. 此计数器的类型是多项计时器。This counter type is a multitimer. 多项计时器旨在监视组件(如处理器或磁盘)的多个实例。Multitimers are designed to monitor more than one instance of a component, such as a processor or disk. (请参见部署工具包中的 PERF_100NSEC_MULTI_TIMER 计数器类型)。(See the PERF_100NSEC_MULTI_TIMER counter type in the deployment kit.)

MultiTimerPercentageNotActive 591463680

这种类型的计数器以取样时间间隔总时间百分比的形式显示一个或多个组件处于活动状态的时间。This counter type shows the active time of one or more components as a percentage of the total time of the sample interval. 此计数器类型为一个反向多项计时器。This counter type is an inverse multitimer. 多项计时器监视组件(如处理器或磁盘)多个实例。Multitimers monitor more than one instance of a component, such as a processor or disk. 反向计数器测量组件处于非活动状态的时间并从该测量值中推导出处于活动状态的时间。Inverse counters measure the time that a component is not active and derive the active time from that measurement. 此计数器与 MultiTimerPercentageNotActive100Ns 的不同之处在于:它是以系统性能计时器的滴答为单位(而不是以 100 毫微秒为单位)来测量时间This counter differs from MultiTimerPercentageNotActive100Ns in that it measures time in units of ticks of the system performance timer, rather than in 100 nanosecond units. (请参见部署工具包中的 PERF_COUNTER_MULTI_TIMER_INV 计数器类型)。(See the PERF_COUNTER_MULTI_TIMER_INV counter type in the deployment kit.)

MultiTimerPercentageNotActive100Ns 592512256

这种类型的计数器以取样时间间隔总时间百分比的形式显示一个或多个组件处于活动状态的时间。This counter type shows the active time of one or more components as a percentage of the total time of the sample interval. 这种类型的计数器以 100 纳秒为单位来测量时间。Counters of this type measure time in 100 nanosecond units. 此计数器类型为一个反向多项计时器。This counter type is an inverse multitimer. 多项计时器旨在监视组件(如处理器或磁盘)的多个实例。Multitimers are designed to monitor more than one instance of a component, such as a processor or disk. 反向计数器测量组件处于非活动状态的时间,并根据非活动时间的测量值推导出处于活动状态的时间Inverse counters measure the time that a component is not active and derive its active time from the measurement of inactive time. (请参见部署工具包中的 PERF_100NSEC_MULTI_TIMER_INV 计数器类型)。(See the PERF_100NSEC_MULTI_TIMER_INV counter type in the deployment kit.)

ObjectSpecificTimer 543229184

这种类型的 64 位计数器是一种以对象特定的单位来显示内容的计时器This 64-bit counter type is a timer that displays in object-specific units. (请参见部署工具包中的 PERF_OBJ_TIME_TIMER 计数器类型)。(See the PERF_OBJ_TIME_TIMER counter type in the deployment kit.)

PercentageActive 541132032

这种类型的计数器以总取样时间的百分比形式显示组件处于活动状态的平均时间This counter type shows the average time that a component was active as a percentage of the total sample time. (请参见部署工具包中的 PERF_COUNTER_TIMER 计数器类型)。(See the PERF_COUNTER_TIMER counter type in the deployment kit.)

PercentageActive100Ns 542180608

这种类型的计数器以取样时间间隔的总运行时间的百分比形式显示组件处于活动状态的时间。This counter type shows the active time of a component as a percentage of the total elapsed time of the sample interval. 它以 100 纳秒为单位来测量时间。It measures time in units of 100 nanoseconds. 这种类型的计数器旨在一次测量一个组件的活动Counters of this type are designed to measure the activity of one component at a time. (请参见部署工具包中的 PERF_100NSEC_TIMER 计数器类型)。(See the PERF_100NSEC_TIMER counter type in the deployment kit.)

PercentageNotActive 557909248

这是反向计数器类型。This is an inverse counter type. 反向计数器测量组件处于非活动状态的时间并从该测量值中推导出处于活动状态的时间。Inverse counters measure the time that a component is not active and derive the active time from that measurement. 这种类型的计数器显示在取样时间间隔内观测到的活动时间的平均百分比。Counters of this type display the average percentage of active time observed during sample interval. 计算这些计数器值的方法是监视服务处于非活动状态的时间百分比,然后从 100% 中减去该值。The value of these counters is calculated by monitoring the percentage of time that the service was inactive and then subtracting that value from 100 percent. 此计数器类型与 PercentageNotActive100Ns 计数器类型基本相同,只是它以系统性能计时器的计时周期(而不是以 100 纳秒)为单位来测量时间This counter type is the same as the PercentageNotActive100Ns counter type, except that it measures time in units of ticks of the system performance timer, rather than in 100 nanosecond units. (请参见部署工具包中的 PERF_COUNTER_TIMER_INV 计数器类型)。(See the PERF_COUNTER_TIMER_INV counter type in the deployment kit.)

PercentageNotActive100Ns 558957824

这种类型的计数器显示取样时间间隔内观测到的活动时间的平均百分比。This counter type shows the average percentage of active time observed during the sample interval. 这是反向计数器。This is an inverse counter. 计算反向计数器值的方法是监视服务处于非活动状态的时间的百分比,然后从 100% 中减去该值Inverse counters are calculated by monitoring the percentage of time that the service was inactive and then subtracting that value from 100 percent. (请参见部署工具包中的 PERF_100NSEC_TIMER_INV 计数器类型)。(See the PERF_100NSEC_TIMER_INV counter type in the deployment kit.)

PrecisionObjectSpecificTimer 543622400

这种类型的计数器显示一个由以下两个计数器值组成的值:所监视事件的运行时间计数以及在对象头的 PerfFreq 字段中指定的频率。This counter type shows a value that consists of two counter values: the count of the elapsed time of the event being monitored, and the frequency specified in the PerfFreq field of the object header. 这种类型的计数器与其他计数器计时器的不同之处在于伴随计数器值的时钟计时周期值,从而消除了因函数调用带来的延迟所造成的任何可能的差异。This counter type differs from other counter timers in that the clock tick value accompanies the counter value so as to eliminate any possible difference due to latency from the function call. 当标准系统计时器的精度不足以提供精确读数时,需要使用精确计数器类型Precision counter types are used when standard system timers are not precise enough for accurate readings. (请参见部署工具包中的 PERF_PRECISION_OBJECT_TIMER 计数器类型)。(See the PERF_PRECISION_OBJECT_TIMER counter type in the deployment kit.)

PrecisionSystemTimer 541525248

这种类型的计数器显示一个由以下两个计数器值组成的值:所监视事件的运行时间计数以及系统性能计时器的频率。This counter type shows a value that consists of two counter values: the count of the elapsed time of the event being monitored, and the frequency from the system performance timer. 这种类型的计数器与其他计数器计时器的不同之处在于伴随计数器值的时钟计时周期值,从而消除了因函数调用带来的延迟所造成的任何可能的差异。This counter type differs from other counter timers in that the clock tick value accompanies the counter value, eliminating any possible difference due to latency from the function call. 当标准系统计时器的精度不足以提供精确读数时,需要使用精确计数器类型Precision counter types are used when standard system timers are not precise enough for accurate readings. (请参见部署工具包中的 PERF_PRECISION_TIMER 计数器类型)。(See the PERF_PRECISION_TIMER counter type in the deployment kit.)

PrecisionTimer100Ns 542573824

这种类型的计数器显示一个由以下两个计数器值组成的值:所监视事件的运行时间计数以及采用相同单位的专用计时器中的“时钟”时间。This counter type shows a value that consists of two counter values: the count of the elapsed time of the event being monitored, and the "clock" time from a private timer in the same units. 它以 100 纳秒为单位来测量时间。It measures time in 100 nanosecond units. 这种类型的计数器与其他计数器计时器的不同之处在于伴随计数器值的时钟计时周期值,从而消除了因函数调用带来的延迟所造成的任何可能的差异。This counter type differs from other counter timers in that the clock tick value accompanies the counter value eliminating any possible difference due to latency from the function call. 当标准系统计时器的精度不足以提供精确读数时,需要使用精确计数器类型Precision counter types are used when standard system timers are not precise enough for accurate readings. (请参见部署工具包中的 PERF_PRECISION_100NS_TIMER 计数器类型)。(See the PERF_PRECISION_100NS_TIMER counter type in the deployment kit.)

QueueLength 4523008

这种类型的计数器旨在监视一段时间内资源队列的平均长度。This counter type is designed to monitor the average length of a queue to a resource over time. 它显示在最近两个采用时间间隔内观测到的队列长度分别除以间隔时间后的差值。It shows the difference between the queue lengths observed during the last two sample intervals divided by the duration of the interval. (请参见部署工具包中的 PERF_COUNTER_QUEUELEN_TYPE 计数器类型)。(See the PERF_COUNTER_QUEUELEN_TYPE counter type in the deployment kit.)

QueueLength100Ns 5571840

这种类型的计数器以 100 纳秒为时间基准来测量队列长度的空间-时间积This counter type measures the queue-length space-time product using a 100-nanosecond time base. (请参见部署工具包中的 PERF_COUNTER_100NS_QUEUELEN_TYPE 计数器类型)。(See the PERF_COUNTER_100NS_QUEUELEN_TYPE counter type in the deployment kit.)

QueueLengthObjectTime 6620416

这种类型的计数器使用对象特定的时间基准来测量队列长度的空间-时间积This counter type measures the queue-length space-time product using an object-specific time base. (请参见部署工具包中的 PERF_COUNTER_OBJ_QUEUELEN_TYPE 计数器类型)。(See the PERF_COUNTER_OBJ_QUEUELEN_TYPE counter type in the deployment kit.)

RateOfCountPerSecond32 272696320

这种类型的计数器显示在取样时间间隔的每一秒内完成的操作的平均数目。This counter type shows the average number of operations completed during each second of the sample interval. 这种类型的计数器用系统时钟的滴答 (Tick) 来测量时间Counters of this type measure time in ticks of the system clock. (请参见部署工具包中的 PERF_COUNTER_COUNTER 计数器类型)。(See the PERF_COUNTER_COUNTER counter type in the deployment kit.)

RateOfCountPerSecond64 272696576

这种类型的计数器显示在取样时间间隔的每一秒内完成的操作的平均数目。This counter type shows the average number of operations completed during each second of the sample interval. 这种类型的计数器用系统时钟的滴答 (Tick) 来测量时间Counters of this type measure time in ticks of the system clock. 此计数器类型与 RateOfCountPerSecond32 类型相同,只是它使用更大的字段来容纳较大的值This counter type is the same as the RateOfCountPerSecond32 type, but it uses larger fields to accommodate larger values. (请参见部署工具包中的 PERF_COUNTER_BULK_COUNT 计数器类型)。(See the PERF_COUNTER_BULK_COUNT counter type in the deployment kit.)

RawBase32 1073939459

该计数器类型仅收集最后观测到的值This counter type collects the last observed value only. 该值用作计数器的表示常规算术分数的分母。The value is used as the denominator of a counter that presents a general arithmetic fraction. 此类型支持 RawFraction32 计数器类型This type supports the RawFraction32 counter type. (请参见部署工具包中的 PERF_RAW_BASE 计数器类型)。(See the PERF_RAW_BASE counter type in the deployment kit.)

RawBase64 1073939712

这种类型的计数器收集最后观测到的值。This counter type collects the last observed value. 它与 RawBase32 计数器类型基本相同,只是它使用更大的字段来容纳更大的值。It is the same as the RawBase32 counter type except that it uses larger fields to accommodate larger values. 此类型支持 RawFraction64 计数器类型This type supports the RawFraction64 counter type. (请参见部署工具包中的 PERF_LARGE_RAW_BASE 计数器类型)。(See the PERF_LARGE_RAW_BASE counter type in the deployment kit.)

RawData32 65536

这种类型的计数器仅显示最后观测到的值,This counter type shows the last observed value only. 而不显示平均值It does not display an average. (请参见部署工具包中的 PERF_COUNTER_RAWCOUNT 计数器类型)。(See the PERF_COUNTER_RAWCOUNT counter type in the deployment kit.)

RawData64 65792

这种类型的计数器仅显示最后观测到的值,而不显示平均值。This counter type shows the last observed value only, not an average. 它与 RawData32 计数器类型基本相同,只是它使用更大的字段来容纳较大的值It is the same as the RawData32 counter type, except that it uses larger fields to accommodate larger values. (请参见部署工具包中的 PERF_COUNTER_LARGE_RAWCOUNT 计数器类型)。(See the PERF_COUNTER_LARGE_RAWCOUNT counter type in the deployment kit.)

RawDataHex32 0

这种类型的计数器以十六进制格式显示最近观测到的值,This counter type shows the most recently observed value, in hexadecimal format. 而不显示平均值It does not display an average. (请参见部署工具包中的 PERF_COUNTER_RAWCOUNT_HEX 计数器类型)。(See the PERF_COUNTER_RAWCOUNT_HEX counter type in the deployment kit.)

RawDataHex64 256

这种类型的计数器以十六进制格式显示最后观测到的值。This counter type shows the last observed value, in hexadecimal format. 它与 RawDataHex32 计数器类型基本相同,只是它使用更大的字段来容纳较大的值It is the same as the RawDataHex32 counter type, except that it uses larger fields to accommodate larger values. (请参见部署工具包中的 PERF_COUNTER_LARGE_RAWCOUNT_HEX 计数器类型)。(See the PERF_COUNTER_LARGE_RAWCOUNT_HEX counter type in the deployment kit.)

RawFraction32 537003008

这种类型的计数器以百分比形式显示子集与其所属集合的比率。This counter type shows the ratio of a subset to its set as a percentage. 例如,它将磁盘上使用的字节数与该磁盘上的总字节数进行比较。For example, it compares the number of bytes in use on a disk to the total number of bytes on the disk. 这种类型的计数器只显示当前百分比,而不显示一段时间的平均值。Counters of this type display the current percentage only, not an average over time. (请参见部署工具包中的 PERF_RAW_FRACTION 计数器类型)。(See the PERF_RAW_FRACTION counter type in the deployment kit.)

RawFraction64 537003264

这种类型的计数器以百分比形式显示子集与其所属集合的比率。This counter type shows the ratio of a subset to its set as a percentage. 例如,它将磁盘上使用的字节数与该磁盘上的总字节数进行比较。For example, it compares the number of bytes in use on a disk to the total number of bytes on the disk. 这种类型的计数器只显示当前百分比,而不显示一段时间的平均值。Counters of this type display the current percentage only, not an average over time. 它与 RawFraction32 计数器类型基本相同,只是它使用更大的字段来容纳较大的值It is the same as the RawFraction32 counter type, except that it uses larger fields to accommodate larger values.

SampleBase 1073939457

此计数器存储获取的取样中断次数,并用作取样分数中的分母。This counter stores the number of sampling interrupts taken and is used as a denominator in the sampling fraction. 此类型支持 SampleFraction 计数器类型This type supports the SampleFraction counter type.

SampleCounter 4260864

这种类型的计数器显示一秒内完成的操作的平均数。This counter type shows the average number of operations completed in one second. 它以系统性能计时器的滴答为单位来测量时间。It measures time in units of ticks of the system performance timer. 变量 F 表示一秒内出现的计时周期数。The variable F represents the number of ticks that occur in one second. 将 F 的值因式分解为方程式,以便可以以秒为单位显示结果。The value of F is factored into the equation so that the result is displayed in seconds. (请参见部署工具包中的 PERF_SAMPLE_COUNTER 计数器类型)。(See the PERF_SAMPLE_COUNTER counter type in the deployment kit.)

SampleFraction 549585920

这种类型的计数器显示最近两个取样时间间隔内的命中操作与所有操作的平均比率This counter type shows the average ratio of hits to all operations during the last two sample intervals. (请参见部署工具包中的 PERF_SAMPLE_FRACTION 计数器类型)。(See the PERF_SAMPLE_FRACTION counter type in the deployment kit.)

注解

有关此枚举中列出的类型的详细信息, 请参阅Windows Server 2003 部署工具包的 "计数器类型" 部分。For details on the types listed in this enumeration, see the Counter Types section of the Windows Server 2003 Deployment Kit.

适用于