3 writes to _instanceNameTable
System.Diagnostics.PerformanceCounter (3)
System\Diagnostics\PerformanceCounterLib.cs (3)
1404
_instanceNameTable
= new Hashtable(StringComparer.OrdinalIgnoreCase);
1477
_instanceNameTable
= new Hashtable(1, StringComparer.OrdinalIgnoreCase);
1488
_instanceNameTable
= new Hashtable(instanceNumber, StringComparer.OrdinalIgnoreCase);
16 references to _instanceNameTable
System.Diagnostics.PerformanceCounter (16)
System\Diagnostics\PerformanceCounterCategory.cs (4)
430
if (categorySample.
_instanceNameTable
.Count == 0)
433
string[] instanceNames = new string[categorySample.
_instanceNameTable
.Count];
434
categorySample.
_instanceNameTable
.Keys.CopyTo(instanceNames, 0);
521
return categorySample.
_instanceNameTable
.ContainsKey(instanceName);
System\Diagnostics\PerformanceCounterLib.cs (12)
1478
_instanceNameTable
[PerformanceCounterLib.SingleInstanceName] = 0;
1508
if (!
_instanceNameTable
.ContainsKey(newInstanceName))
1510
_instanceNameTable
[newInstanceName] = i;
1729
if (!_categorySample.
_instanceNameTable
.ContainsKey(instanceName))
1736
if (!_categorySample.
_instanceNameTable
.ContainsKey(instanceName))
1740
int index = (int)_categorySample.
_instanceNameTable
[instanceName];
1746
int baseIndex = (int)baseCategorySample.
_instanceNameTable
[instanceName];
1767
string[] keys = new string[_categorySample.
_instanceNameTable
.Count];
1768
_categorySample.
_instanceNameTable
.Keys.CopyTo(keys, 0);
1769
int[] indexes = new int[_categorySample.
_instanceNameTable
.Count];
1770
_categorySample.
_instanceNameTable
.Values.CopyTo(indexes, 0);
1777
int baseIndex = (int)baseCategorySample.
_instanceNameTable
[keys[index]];