aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Util/wixext/PerformanceCounterType.cs
blob: 1e06efd3364e6d045ab4256eed5868faafc60f03 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// Captured from: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.dll

namespace System.Diagnostics
{
    public enum PerformanceCounterType
    {
        //
        // Summary:
        //     An instantaneous counter that shows the most recently observed value in hexadecimal
        //     format. Used, for example, to maintain a simple count of items or operations.
        NumberOfItemsHEX32 = 0,
        //
        // Summary:
        //     An instantaneous counter that shows the most recently observed value. Used, for
        //     example, to maintain a simple count of a very large number of items or operations.
        //     It is the same as NumberOfItemsHEX32 except that it uses larger fields to accommodate
        //     larger values.
        NumberOfItemsHEX64 = 256,
        //
        // Summary:
        //     An instantaneous counter that shows the most recently observed value. Used, for
        //     example, to maintain a simple count of items or operations.
        NumberOfItems32 = 65536,
        //
        // Summary:
        //     An instantaneous counter that shows the most recently observed value. Used, for
        //     example, to maintain a simple count of a very large number of items or operations.
        //     It is the same as NumberOfItems32 except that it uses larger fields to accommodate
        //     larger values.
        NumberOfItems64 = 65792,
        //
        // Summary:
        //     A difference counter that shows the change in the measured attribute between
        //     the two most recent sample intervals.
        CounterDelta32 = 4195328,
        //
        // Summary:
        //     A difference counter that shows the change in the measured attribute between
        //     the two most recent sample intervals. It is the same as the CounterDelta32 counter
        //     type except that is uses larger fields to accomodate larger values.
        CounterDelta64 = 4195584,
        //
        // Summary:
        //     An average counter that shows the average number of operations completed in one
        //     second. When a counter of this type samples the data, each sampling interrupt
        //     returns one or zero. The counter data is the number of ones that were sampled.
        //     It measures time in units of ticks of the system performance timer.
        SampleCounter = 4260864,
        //
        // Summary:
        //     An average counter 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. This type
        //     of counter is typically used to track the number of items that are queued or
        //     waiting.
        CountPerTimeInterval32 = 4523008,
        //
        // Summary:
        //     An average counter that 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. This counter type is the same as CountPerTimeInterval32 except that
        //     it uses larger fields to accommodate larger values. This type of counter is typically
        //     used to track a high-volume or very large number of items that are queued or
        //     waiting.
        CountPerTimeInterval64 = 4523264,
        //
        // Summary:
        //     A difference counter that shows the average number of operations completed during
        //     each second of the sample interval. Counters of this type measure time in ticks
        //     of the system clock.
        RateOfCountsPerSecond32 = 272696320,
        //
        // Summary:
        //     A difference counter that shows the average number of operations completed during
        //     each second of the sample interval. Counters of this type measure time in ticks
        //     of the system clock. This counter type is the same as the RateOfCountsPerSecond32
        //     type, but it uses larger fields to accommodate larger values to track a high-volume
        //     number of items or operations per second, such as a byte-transmission rate.
        RateOfCountsPerSecond64 = 272696576,
        //
        // Summary:
        //     An instantaneous percentage counter that 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.
        RawFraction = 537003008,
        //
        // Summary:
        //     A percentage counter that shows the average time that a component is active as
        //     a percentage of the total sample time.
        CounterTimer = 541132032,
        //
        // Summary:
        //     A percentage counter that shows the active time of a component as a percentage
        //     of the total elapsed time of the sample interval. It measures time in units of
        //     100 nanoseconds (ns). Counters of this type are designed to measure the activity
        //     of one component at a time.
        Timer100Ns = 542180608,
        //
        // Summary:
        //     A percentage counter that shows the average ratio of hits to all operations during
        //     the last two sample intervals.
        SampleFraction = 549585920,
        //
        // Summary:
        //     A percentage counter that displays the average percentage of active time observed
        //     during sample interval. 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.
        CounterTimerInverse = 557909248,
        //
        // Summary:
        //     A percentage counter that shows the average percentage of active time observed
        //     during the sample interval.
        Timer100NsInverse = 558957824,
        //
        // Summary:
        //     A percentage counter that displays the active time of one or more components
        //     as a percentage of the total time of the sample interval. Because the numerator
        //     records the active time of components operating simultaneously, the resulting
        //     percentage can exceed 100 percent.
        CounterMultiTimer = 574686464,
        //
        // Summary:
        //     A percentage counter that shows the active time of one or more components as
        //     a percentage of the total time of the sample interval. It measures time in 100
        //     nanosecond (ns) units.
        CounterMultiTimer100Ns = 575735040,
        //
        // Summary:
        //     A percentage counter that shows the active time of one or more components as
        //     a percentage of the total time of the sample interval. It derives the active
        //     time by measuring the time that the components were not active and subtracting
        //     the result from 100 percent by the number of objects monitored.
        CounterMultiTimerInverse = 591463680,
        //
        // Summary:
        //     A percentage counter that shows the active time of one or more components as
        //     a percentage of the total time of the sample interval. Counters of this type
        //     measure time in 100 nanosecond (ns) units. They derive the active time by measuring
        //     the time that the components were not active and subtracting the result from
        //     multiplying 100 percent by the number of objects monitored.
        CounterMultiTimer100NsInverse = 592512256,
        //
        // Summary:
        //     An average counter that measures the time it takes, on average, 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.
        AverageTimer32 = 805438464,
        //
        // Summary:
        //     A difference timer that shows the total time between when the component or process
        //     started and the time when this value is calculated.
        ElapsedTime = 807666944,
        //
        // Summary:
        //     An average counter that shows how many items are processed, on average, during
        //     an operation. Counters of this type display a ratio of the items processed 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.
        AverageCount64 = 1073874176,
        //
        // Summary:
        //     A base counter that stores the number of sampling interrupts taken and is used
        //     as a denominator in the sampling fraction. The sampling fraction is the number
        //     of samples that were 1 (or true) for a sample interrupt. Check that this value
        //     is greater than zero before using it as the denominator in a calculation of SampleFraction.
        SampleBase = 1073939457,
        //
        // Summary:
        //     A base counter that is used in the calculation of time or count averages, such
        //     as AverageTimer32 and AverageCount64. Stores the denominator for calculating
        //     a counter to present "time per operation" or "count per operation".
        AverageBase = 1073939458,
        //
        // Summary:
        //     A base counter that stores the denominator of a counter that presents a general
        //     arithmetic fraction. Check that this value is greater than zero before using
        //     it as the denominator in a RawFraction value calculation.
        RawBase = 1073939459,
        //
        // Summary:
        //     A base counter that 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. Used with CounterMultiTimer, CounterMultiTimerInverse,
        //     CounterMultiTimer100Ns, and CounterMultiTimer100NsInverse.
        CounterMultiBase = 1107494144
    }
}