49 references to PerformanceCounterInstanceLifetime
SMSvcHost (15)
System\ServiceModel\Activation\Diagnostics\ListenerPerfCounters.cs (15)
39
ListenerPerfCounters.AddCounterToList(perfCounterConnectionsDispatchedTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ConnectionsDispatchedTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
40
ListenerPerfCounters.AddCounterToList(perfCounterConnectionsDispatchedNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ConnectionsDispatchedNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
41
ListenerPerfCounters.AddCounterToList(perfCounterDispatchFailuresTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.DispatchFailuresTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
42
ListenerPerfCounters.AddCounterToList(perfCounterDispatchFailuresNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.DispatchFailuresNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
43
ListenerPerfCounters.AddCounterToList(perfCounterUrisRegisteredTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.UrisRegisteredTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
44
ListenerPerfCounters.AddCounterToList(perfCounterUrisRegisteredNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.UrisRegisteredNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
45
ListenerPerfCounters.AddCounterToList(perfCounterUrisUnregisteredTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.UrisUnregisteredTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
46
ListenerPerfCounters.AddCounterToList(perfCounterUrisUnregisteredNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.UrisUnregisteredNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
47
ListenerPerfCounters.AddCounterToList(perfCounterRegistrationsActiveTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.RegistrationsActiveTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
48
ListenerPerfCounters.AddCounterToList(perfCounterRegistrationsActiveNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.RegistrationsActiveNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
49
ListenerPerfCounters.AddCounterToList(perfCounterConnectionsAcceptedTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ConnectionsAcceptedTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
50
ListenerPerfCounters.AddCounterToList(perfCounterConnectionsAcceptedNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ConnectionsAcceptedNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
51
ListenerPerfCounters.AddCounterToList(perfCounterProtocolFailuresTcp = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ProtocolFailuresTcp, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
52
ListenerPerfCounters.AddCounterToList(perfCounterProtocolFailuresNamedPipe = ListenerPerfCounters.GetListenerPerformanceCounter(CategoryName, PerformanceCounterStrings.SMSVCHOST.ProtocolFailuresNamedPipe, string.Empty,
PerformanceCounterInstanceLifetime
.Global));
60
static PerformanceCounter GetListenerPerformanceCounter(string categoryName, string perfCounterName, string instanceName,
PerformanceCounterInstanceLifetime
instanceLifetime)
System (27)
net\System\Net\_NetworkingPerfCounters.cs (1)
281
instanceCounter.InstanceLifetime =
PerformanceCounterInstanceLifetime
.Process;
services\monitoring\system\diagnosticts\PerformanceCounter.cs (8)
40
private
PerformanceCounterInstanceLifetime
instanceLifetime =
PerformanceCounterInstanceLifetime
.Global;
242
DefaultValue(
PerformanceCounterInstanceLifetime
.Global),
245
public
PerformanceCounterInstanceLifetime
InstanceLifetime {
248
if (value >
PerformanceCounterInstanceLifetime
.Process || value <
PerformanceCounterInstanceLifetime
.Global)
508
if (instanceLifetime !=
PerformanceCounterInstanceLifetime
.Global)
534
if (String.IsNullOrEmpty(instanceName) && InstanceLifetime ==
PerformanceCounterInstanceLifetime
.Process)
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (18)
93
this (catName, counterName, instanceName,
PerformanceCounterInstanceLifetime
.Global) { }
97
internal unsafe SharedPerformanceCounter(string catName, string counterName, string instanceName,
PerformanceCounterInstanceLifetime
lifetime) {
110
if (lifetime !=
PerformanceCounterInstanceLifetime
.Global)
200
PerformanceCounterInstanceLifetime
lifetime) {
326
PerformanceCounterInstanceLifetime
lifetime) {
481
private unsafe static void PopulateLifetimeEntry(ProcessLifetimeEntry *lifetimeEntry,
PerformanceCounterInstanceLifetime
lifetime) {
483
if (lifetime ==
PerformanceCounterInstanceLifetime
.Process) {
485
lifetimeEntry->LifetimeType = (int)
PerformanceCounterInstanceLifetime
.Process;
712
private unsafe CounterEntry* GetCounter(string counterName, string instanceName, bool enableReuse,
PerformanceCounterInstanceLifetime
lifetime) {
895
bool activateUnusedInstances,
PerformanceCounterInstanceLifetime
lifetime,
965
if (lifetime !=
PerformanceCounterInstanceLifetime
.Process)
979
if (lifetime ==
PerformanceCounterInstanceLifetime
.Process)
1032
PerformanceCounterInstanceLifetime
lifetime,
1196
if (lifetime->LifetimeType == (int)
PerformanceCounterInstanceLifetime
.Process) {
1321
internal unsafe void RemoveInstance(string instanceName,
PerformanceCounterInstanceLifetime
instanceLifetime) {
1354
&& lifetimeEntry->LifetimeType == (int)
PerformanceCounterInstanceLifetime
.Process
1356
validatedCachedInstancePointer &= (instanceLifetime ==
PerformanceCounterInstanceLifetime
.Process);
1362
validatedCachedInstancePointer &= (instanceLifetime !=
PerformanceCounterInstanceLifetime
.Process);
System.Data (1)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (1)
107
instance.InstanceLifetime =
PerformanceCounterInstanceLifetime
.Process;
System.ServiceModel (6)
System\ServiceModel\Diagnostics\PerformanceCounters.cs (6)
117
PerformanceCounterInstanceLifetime
.Process);
126
PerformanceCounterInstanceLifetime
.Process);
135
PerformanceCounterInstanceLifetime
.Process);
144
PerformanceCounterInstanceLifetime
.Global);
147
static internal PerformanceCounter GetPerformanceCounter(string categoryName, string perfCounterName, string instanceName,
PerformanceCounterInstanceLifetime
instanceLifetime)
158
static internal PerformanceCounter GetPerformanceCounterInternal(string categoryName, string perfCounterName, string instanceName,
PerformanceCounterInstanceLifetime
instanceLifetime)