CounterSetInstanceType 列舉

定義

指定計數器集合可允許多重執行個體 (Instance),例如處理序 (Process) 和實體磁碟,還是單一執行個體 (例如記憶體)。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,只是這種計數器型別會在消費者應用程式的存留期 (Lifetime) 儲存所有的計數器值 (計數器值是在計數器存留期過後加以快取)。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.

適用於