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