3 writes to InstanceNameTable
System (3)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
1316this.InstanceNameTable = new Hashtable(StringComparer.OrdinalIgnoreCase); 1376this.InstanceNameTable = new Hashtable(1, StringComparer.OrdinalIgnoreCase); 1385this.InstanceNameTable = new Hashtable(instanceNumber, StringComparer.OrdinalIgnoreCase);
16 references to InstanceNameTable
System (16)
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (4)
452if (categorySample.InstanceNameTable.Count == 0) 455string[] instanceNames = new string[categorySample.InstanceNameTable.Count]; 456categorySample.InstanceNameTable.Keys.CopyTo(instanceNames, 0); 540return categorySample.InstanceNameTable.ContainsKey(instanceName);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (12)
1377this.InstanceNameTable[PerformanceCounterLib.SingleInstanceName] = 0; 1403if (!this.InstanceNameTable.ContainsKey(newInstanceName)) { 1404this.InstanceNameTable[newInstanceName] = i; 1562if (!categorySample.InstanceNameTable.ContainsKey(instanceName)) { 1568if (!categorySample.InstanceNameTable.ContainsKey(instanceName)) 1572int index = (int)categorySample.InstanceNameTable[instanceName]; 1577int baseIndex = (int)baseCategorySample.InstanceNameTable[instanceName]; 1597string[] keys = new string[categorySample.InstanceNameTable.Count]; 1598categorySample.InstanceNameTable.Keys.CopyTo(keys, 0); 1599int[] indexes = new int[categorySample.InstanceNameTable.Count]; 1600categorySample.InstanceNameTable.Values.CopyTo(indexes, 0); 1605int baseIndex = (int)baseCategorySample.InstanceNameTable[keys[index]];