2 instantiations of SharedPerformanceCounter
System (2)
services\monitoring\system\diagnosticts\PerformanceCounter.cs (1)
537
this.sharedCounter = new
SharedPerformanceCounter
(currentCategoryName.ToLower(CultureInfo.InvariantCulture), counterName.ToLower(CultureInfo.InvariantCulture), instanceName.ToLower(CultureInfo.InvariantCulture), instanceLifetime);
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
1282
SharedPerformanceCounter spc = new
SharedPerformanceCounter
(categoryName, null, null);
12 references to SharedPerformanceCounter
System (12)
compmod\system\diagnostics\DiagnosticsConfiguration.cs (6)
117
return
SharedPerformanceCounter
.DefaultCountersFileMappingSize;
126
if (size <
SharedPerformanceCounter
.MinCountersFileMappingSize)
127
size =
SharedPerformanceCounter
.MinCountersFileMappingSize;
129
if (size >
SharedPerformanceCounter
.MaxCountersFileMappingSize)
130
size =
SharedPerformanceCounter
.MaxCountersFileMappingSize;
135
return
SharedPerformanceCounter
.DefaultCountersFileMappingSize;
services\monitoring\system\diagnosticts\PerformanceCounter.cs (1)
51
private
SharedPerformanceCounter
sharedCounter;
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (2)
275
if (categoryName.Length > (1024 -
SharedPerformanceCounter
.DefaultFileMappingName.Length))
400
SharedPerformanceCounter
.RemoveAllInstances(categoryName);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1565
if (instanceName.Length >
SharedPerformanceCounter
.InstanceNameMaxLength)
1566
instanceName = instanceName.Substring(0,
SharedPerformanceCounter
.InstanceNameMaxLength);
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
1282
SharedPerformanceCounter
spc = new SharedPerformanceCounter(categoryName, null, null);