4 instantiations of CounterSample
System (4)
services\monitoring\system\diagnosticts\CounterSample.cs (1)
30
public static CounterSample Empty = new
CounterSample
(0, 0, 0, 0, 0, 0, PerformanceCounterType.NumberOfItems32);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
1581
return new
CounterSample
(rawValue,
1609
CounterSample sample = new
CounterSample
(this.instanceValues[indexes[index]],
1630
return new
CounterSample
(rawValue,
31 references to CounterSample
System (31)
services\monitoring\system\diagnosticts\CounterSample.cs (11)
30
public static
CounterSample
Empty = new CounterSample(0, 0, 0, 0, 0, 0, PerformanceCounterType.NumberOfItems32);
141
public static float Calculate(
CounterSample
counterSample) {
148
public static float Calculate(
CounterSample
counterSample,
CounterSample
nextCounterSample) {
153
return ( o is
CounterSample
) && Equals((
CounterSample
)o);
156
public bool Equals(
CounterSample
sample) {
171
public static bool operator ==(
CounterSample
a,
CounterSample
b) {
175
public static bool operator !=(
CounterSample
a,
CounterSample
b) {
services\monitoring\system\diagnosticts\CounterSampleCalculator.cs (8)
30
private static float GetElapsedTime(
CounterSample
oldSample,
CounterSample
newSample) {
58
public static float ComputeCounterValue(
CounterSample
newSample) {
59
return ComputeCounterValue(
CounterSample
.Empty, newSample);
65
public static float ComputeCounterValue(
CounterSample
oldSample,
CounterSample
newSample) {
114
private static void FillInValues(
CounterSample
oldSample,
CounterSample
newSample, NativeMethods.PDH_RAW_COUNTER oldPdhValue, NativeMethods.PDH_RAW_COUNTER newPdhValue) {
services\monitoring\system\diagnosticts\InstanceData.cs (3)
19
private
CounterSample
sample;
24
public InstanceData(string instanceName,
CounterSample
sample) {
41
public
CounterSample
Sample {
services\monitoring\system\diagnosticts\PerformanceCounter.cs (6)
48
private
CounterSample
oldSample =
CounterSample
.Empty;
378
this.oldSample =
CounterSample
.Empty;
552
public
CounterSample
NextSample() {
584
CounterSample
newSample = NextSample();
587
retVal =
CounterSample
.Calculate(oldSample, newSample);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
1560
internal
CounterSample
GetInstanceValue(string instanceName) {
1609
CounterSample
sample = new CounterSample(this.instanceValues[indexes[index]],
1624
internal
CounterSample
GetSingleValue() {