13 references to
System.Diagnostics.PerformanceCounter (13)
System\Diagnostics\CounterCreationDataCollection.cs (1)
59
Add(value
[
i]);
System\Diagnostics\PerformanceCounterCategory.cs (10)
299
if (string.IsNullOrEmpty(counterData
[
i].CounterName))
304
int currentSampleType = (int)counterData
[
i].CounterType;
318
currentSampleType = (int)counterData
[
i + 1].CounterType;
331
currentSampleType = (int)counterData
[
i - 1].CounterType;
346
if (h.ContainsKey(counterData
[
i].CounterName))
348
throw new ArgumentException(SR.Format(SR.DuplicateCounterName, counterData
[
i].CounterName));
352
h.Add(counterData
[
i].CounterName, string.Empty);
355
if (string.IsNullOrEmpty(counterData
[
i].CounterHelp))
357
counterData
[
i].CounterHelp = counterData
[
i].CounterName;
System\Diagnostics\PerformanceCounterLib.cs (2)
537
counters[i] = creationData
[
i].CounterName;
538
counterTypes[i] = ((int)creationData
[
i].CounterType).ToString(CultureInfo.InvariantCulture);