14 instantiations of PerformanceCounter
System (3)
net\System\Net\_NetworkingPerfCounters.cs (2)
272PerformanceCounter globalCounter = new PerformanceCounter(categoryName, counterName, 277PerformanceCounter instanceCounter = new PerformanceCounter();
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (1)
488counters[index] = new PerformanceCounter(categoryName, counterNames[index], instanceName, machineName, true);
System.Data (1)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (1)
103PerformanceCounter instance = new PerformanceCounter();
System.Runtime.Caching (7)
System\Caching\PerfCounters.cs (7)
80_counters[(int)PerfCounterName.Entries] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_ENTRIES, instanceName, false); 81_counters[(int)PerfCounterName.Hits] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HITS, instanceName, false); 82_counters[(int)PerfCounterName.HitRatio] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HIT_RATIO, instanceName, false); 83_counters[(int)PerfCounterName.HitRatioBase] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HIT_RATIO_BASE, instanceName, false); 84_counters[(int)PerfCounterName.Misses] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_MISSES, instanceName, false); 85_counters[(int)PerfCounterName.Trims] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_TRIMS, instanceName, false); 86_counters[(int)PerfCounterName.Turnover] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_TURNOVER, instanceName, false);
System.ServiceModel (1)
System\ServiceModel\Diagnostics\PerformanceCounters.cs (1)
163counter = new PerformanceCounter();
System.Workflow.Runtime (2)
PerformanceCounterManager.cs (2)
294new PerformanceCounter( 303new PerformanceCounter(
94 references to PerformanceCounter
SMSvcHost (23)
System\ServiceModel\Activation\Diagnostics\ListenerPerfCounters.cs (23)
18static PerformanceCounter perfCounterConnectionsAcceptedNamedPipe; 19static PerformanceCounter perfCounterConnectionsAcceptedTcp; 20static PerformanceCounter perfCounterDispatchFailuresNamedPipe; 21static PerformanceCounter perfCounterDispatchFailuresTcp; 22static PerformanceCounter perfCounterProtocolFailuresNamedPipe; 23static PerformanceCounter perfCounterProtocolFailuresTcp; 24static PerformanceCounter perfCounterUrisRegisteredNamedPipe; 25static PerformanceCounter perfCounterUrisRegisteredTcp; 26static PerformanceCounter perfCounterRegistrationsActiveNamedPipe; 27static PerformanceCounter perfCounterRegistrationsActiveTcp; 28static PerformanceCounter perfCounterConnectionsDispatchedNamedPipe; 29static PerformanceCounter perfCounterConnectionsDispatchedTcp; 30static PerformanceCounter perfCounterUrisUnregisteredNamedPipe; 31static PerformanceCounter perfCounterUrisUnregisteredTcp; 32static List<PerformanceCounter> perfList; 60static PerformanceCounter GetListenerPerformanceCounter(string categoryName, string perfCounterName, string instanceName, PerformanceCounterInstanceLifetime instanceLifetime) 65static void AddCounterToList(PerformanceCounter counter) 73static List<PerformanceCounter> PerformanceList 83ListenerPerfCounters.perfList = new List<PerformanceCounter>(); 172static void IncrementCounter(ref PerformanceCounter counter) 194static void DecrementCounter(ref PerformanceCounter counter) 230List<PerformanceCounter> countersToRemove = null; 246foreach (PerformanceCounter counter in countersToRemove)
System (12)
net\System\Net\_NetworkingPerfCounters.cs (8)
43private PerformanceCounter instanceCounter; 44private PerformanceCounter globalCounter; 46public PerformanceCounter InstanceCounter 51public PerformanceCounter GlobalCounter 56public CounterPair(PerformanceCounter instanceCounter, PerformanceCounter globalCounter) 272PerformanceCounter globalCounter = new PerformanceCounter(categoryName, counterName, 277PerformanceCounter instanceCounter = new PerformanceCounter();
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (4)
466public PerformanceCounter[] GetCounters() { 475public PerformanceCounter[] GetCounters(string instanceName) { 486PerformanceCounter[] counters = new PerformanceCounter[counterNames.Length];
System.Data (5)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (5)
97private PerformanceCounter _instance; 103PerformanceCounter instance = new PerformanceCounter(); 122PerformanceCounter instance = _instance; 130PerformanceCounter instance = _instance; 141PerformanceCounter instance = _instance;
System.Runtime.Caching (7)
System\Caching\PerfCounters.cs (7)
28private PerformanceCounter[] _counters; 78_counters = new PerformanceCounter[NUM_COUNTERS]; 112PerformanceCounter counter = _counters[idx]; 119PerformanceCounter counter = _counters[idx]; 126PerformanceCounter counter = _counters[idx]; 132PerformanceCounter[] counters = _counters; 136PerformanceCounter counter = counters[i];
System.ServiceModel (35)
System\ServiceModel\Description\DispatcherBuilder.cs (1)
794System.Diagnostics.PerformanceCounter.CloseSharedResources();
System\ServiceModel\Diagnostics\DefaultPerformanceCounters.cs (4)
36internal PerformanceCounter[] Counters { get; set; } 73this.Counters = new PerformanceCounter[(int)PerfCounters.TotalCounters]; 78PerformanceCounter counter = PerformanceCounters.GetDefaultPerformanceCounter(this.perfCounterNames[i], this.instanceName); 122PerformanceCounter counter = this.Counters[ctr];
System\ServiceModel\Diagnostics\EndpointPerformanceCounters.cs (4)
12internal PerformanceCounter[] Counters { get; set; } 18this.Counters = new PerformanceCounter[(int)PerfCounters.TotalCounters]; 21PerformanceCounter counter = PerformanceCounters.GetEndpointPerformanceCounter(perfCounterNames[i], this.instanceName); 147PerformanceCounter counter = this.Counters[ctr];
System\ServiceModel\Diagnostics\OperationPerformanceCounters.cs (4)
12internal PerformanceCounter[] Counters { get; set; } 17this.Counters = new PerformanceCounter[(int)PerfCounters.TotalCounters]; 20PerformanceCounter counter = PerformanceCounters.GetOperationPerformanceCounter(perfCounterNames[i], this.instanceName); 134PerformanceCounter counter = this.Counters[ctr];
System\ServiceModel\Diagnostics\PerformanceCounters.cs (9)
111static internal PerformanceCounter GetOperationPerformanceCounter(string perfCounterName, string instanceName) 120static internal PerformanceCounter GetEndpointPerformanceCounter(string perfCounterName, string instanceName) 129static internal PerformanceCounter GetServicePerformanceCounter(string perfCounterName, string instanceName) 138static internal PerformanceCounter GetDefaultPerformanceCounter(string perfCounterName, string instanceName) 147static internal PerformanceCounter GetPerformanceCounter(string categoryName, string perfCounterName, string instanceName, PerformanceCounterInstanceLifetime instanceLifetime) 149PerformanceCounter counter = null; 158static internal PerformanceCounter GetPerformanceCounterInternal(string categoryName, string perfCounterName, string instanceName, PerformanceCounterInstanceLifetime instanceLifetime) 160PerformanceCounter counter = null; 422internal static void ReleasePerformanceCounter(ref PerformanceCounter counter)
System\ServiceModel\Diagnostics\PerformanceCountersFactory.cs (1)
185PerformanceCounter.CloseSharedResources();
System\ServiceModel\Diagnostics\ServicePerformanceCounters.cs (4)
14internal PerformanceCounter[] Counters { get; set; } 19this.Counters = new PerformanceCounter[(int)PerfCounters.TotalCounters]; 22PerformanceCounter counter = PerformanceCounters.GetServicePerformanceCounter(perfCounterNames[i], this.InstanceName); 214PerformanceCounter counter = this.Counters[ctr];
System\ServiceModel\Diagnostics\SystemDiagnosticsPerformanceCountersExtension.cs (8)
12static internal void Increment(this PerformanceCountersBase thisPtr, PerformanceCounter[] counters, int counterIndex) 14PerformanceCounter counter = null; 39static internal void IncrementBy(this PerformanceCountersBase thisPtr, PerformanceCounter[] counters, int counterIndex, long time) 41PerformanceCounter counter = null; 66static internal void Set(this PerformanceCountersBase thisPtr, PerformanceCounter[] counters, int counterIndex, long value) 68PerformanceCounter counter = null; 90static internal void Decrement(this PerformanceCountersBase thisPtr, PerformanceCounter[] counters, int counterIndex) 92PerformanceCounter counter = null;
System.Workflow.Runtime (12)
Hosting\DefaultWorkflowSchedulerService.cs (3)
32private IList<PerformanceCounter> queueCounters; // expose internal queue length 276foreach (PerformanceCounter p in queueCounters) 303foreach (PerformanceCounter p in queueCounters)
Hosting\ManualWorkflowSchedulerService.cs (3)
57private IList<PerformanceCounter> queueCounters; 118foreach (PerformanceCounter p in queueCounters) 172foreach (PerformanceCounter p in queueCounters)
PerformanceCounterManager.cs (6)
289internal List<PerformanceCounter> CreateCounters(String name) 291List<PerformanceCounter> counters = new List<PerformanceCounter>(); 315foreach (PerformanceCounter counter in statement.Counters) 455internal List<PerformanceCounter> Counters; 459internal PerformanceCounterStatement(List<PerformanceCounter> counters,