/
CounterSetInstanceType.cs
46 lines (40 loc) · 2.12 KB
/
CounterSetInstanceType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Diagnostics.PerformanceData
{
/// <summary>
/// Enum of friendly names to CounterSet instance type (maps directory to the native types defined in perflib.h)
/// </summary>
public enum CounterSetInstanceType
{
/// <summary>
/// Single means that at any time CounterSet should only have at most 1 active instance.
/// </summary>
Single = 0, // PERF_COUNTERSET_SINGLE_INSTANCE
/// <summary>
/// Multiple means that CounterSet could have multiple active instances.
/// </summary>
Multiple = 0x00000002, // PERF_COUNTERSET_MULTI_INSTANCES
/// <summary>
/// GlobalAggregate means that CounterSet could have multiple active instances, but counter consumption
/// applications (for example, perfmon) would aggregate raw counter data from different instances.
/// </summary>
GlobalAggregate = 0x00000004, // PERF_COUNTERSET_SINGLE_AGGREGATE
/// <summary>
/// GlobalAggregateWithHistory is similar to GlobalAggregate, but counter consumption applications
/// (for example, permfon) would aggregate raw counter data not only from active instances, but also
/// from instances since consumption applications start.
/// </summary>
GlobalAggregateWithHistory = 0x0000000B, // PERF_COUNTERSET_SINGLE_AGGREGATE_HISTORY
/// <summary>
/// MultipleInstancesWithAggregate acts similar to Multiple, but it also generate aggregated instance
/// "_Total" that hosts aggregated raw counter data from all other instances.
/// </summary>
MultipleAggregate = 0x00000006, // PERF_COUNTERSET_MULTI_AGGREGATE
/// <summary>
/// InstanceAggregate only exists in Longhonr Server. Counter consumption applications aggregate raw
/// counter data for active instances with the same instance name.
/// </summary>
InstanceAggregate = 0x00000016 // PERF_COUNTERSET_INSTANCE_AGGREGATE
}
}