170 references to PerfCounters
System.ServiceModel (170)
System\ServiceModel\Diagnostics\ServicePerformanceCounters.cs (39)
19
this.Counters = new PerformanceCounter[(int)
PerfCounters
.TotalCounters];
20
for (int i = 0; i < (int)
PerfCounters
.TotalCounters; i++)
74
Increment((int)
PerfCounters
.Calls);
75
Increment((int)
PerfCounters
.CallsPerSecond);
76
Increment((int)
PerfCounters
.CallsOutstanding);
81
Decrement((int)
PerfCounters
.CallsOutstanding);
86
Increment((int)
PerfCounters
.CallsFailed);
87
Increment((int)
PerfCounters
.CallsFailedPerSecond);
88
Decrement((int)
PerfCounters
.CallsOutstanding);
93
Increment((int)
PerfCounters
.CallsFaulted);
94
Increment((int)
PerfCounters
.CallsFaultedPerSecond);
95
Decrement((int)
PerfCounters
.CallsOutstanding);
101
IncrementBy((int)
PerfCounters
.CallDuration, time);
102
Increment((int)
PerfCounters
.CallDurationBase);
107
Increment((int)
PerfCounters
.SecurityValidationAuthenticationFailures);
108
Increment((int)
PerfCounters
.SecurityValidationAuthenticationFailuresPerSecond);
113
Increment((int)
PerfCounters
.CallsNotAuthorized);
114
Increment((int)
PerfCounters
.CallsNotAuthorizedPerSecond);
119
Increment((int)
PerfCounters
.Instances);
120
Increment((int)
PerfCounters
.InstancesRate);
125
Decrement((int)
PerfCounters
.Instances);
130
Increment((int)
PerfCounters
.RMSessionsFaulted);
131
Increment((int)
PerfCounters
.RMSessionsFaultedPerSecond);
136
Increment((int)
PerfCounters
.RMMessagesDropped);
137
Increment((int)
PerfCounters
.RMMessagesDroppedPerSecond);
142
IncrementBy((int)
PerfCounters
.TxCommitted, count);
143
IncrementBy((int)
PerfCounters
.TxCommittedPerSecond, count);
148
IncrementBy((int)
PerfCounters
.TxInDoubt, count);
149
IncrementBy((int)
PerfCounters
.TxInDoubtPerSecond, count);
154
IncrementBy((int)
PerfCounters
.TxAborted, count);
155
IncrementBy((int)
PerfCounters
.TxAbortedPerSecond, count);
160
Increment((int)
PerfCounters
.TxFlowed);
161
Increment((int)
PerfCounters
.TxFlowedPerSecond);
166
Increment((int)
PerfCounters
.MsmqDroppedMessages);
167
Increment((int)
PerfCounters
.MsmqDroppedMessagesPerSecond);
172
Increment((int)
PerfCounters
.MsmqPoisonMessages);
173
Increment((int)
PerfCounters
.MsmqPoisonMessagesPerSecond);
178
Increment((int)
PerfCounters
.MsmqRejectedMessages);
179
Increment((int)
PerfCounters
.MsmqRejectedMessagesPerSecond);
System\ServiceModel\Diagnostics\ServicePerformanceCountersBase.cs (2)
138
get { return (int)
PerfCounters
.Calls; }
143
get { return (int)
PerfCounters
.TotalCounters; }
System\ServiceModel\Diagnostics\ServicePerformanceCountersV2.cs (117)
38
localCounterSet.AddCounter((int)
PerfCounters
.Calls, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.Calls]);
39
localCounterSet.AddCounter((int)
PerfCounters
.CallsPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.CallsPerSecond]);
40
localCounterSet.AddCounter((int)
PerfCounters
.CallsOutstanding, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.CallsOutstanding]);
41
localCounterSet.AddCounter((int)
PerfCounters
.CallsFailed, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.CallsFailed]);
42
localCounterSet.AddCounter((int)
PerfCounters
.CallsFailedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.CallsFailedPerSecond]);
43
localCounterSet.AddCounter((int)
PerfCounters
.CallsFaulted, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.CallsFaulted]);
44
localCounterSet.AddCounter((int)
PerfCounters
.CallsFaultedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.CallsFaultedPerSecond]);
45
localCounterSet.AddCounter((int)
PerfCounters
.CallDurationBase, CounterType.AverageBase, perfCounterNames[(int)
PerfCounters
.CallDurationBase]);
46
localCounterSet.AddCounter((int)
PerfCounters
.CallDuration, CounterType.AverageTimer32, perfCounterNames[(int)
PerfCounters
.CallDuration]);
47
localCounterSet.AddCounter((int)
PerfCounters
.SecurityValidationAuthenticationFailures, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.SecurityValidationAuthenticationFailures]);
48
localCounterSet.AddCounter((int)
PerfCounters
.SecurityValidationAuthenticationFailuresPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.SecurityValidationAuthenticationFailuresPerSecond]);
49
localCounterSet.AddCounter((int)
PerfCounters
.CallsNotAuthorized, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.CallsNotAuthorized]);
50
localCounterSet.AddCounter((int)
PerfCounters
.CallsNotAuthorizedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.CallsNotAuthorizedPerSecond]);
51
localCounterSet.AddCounter((int)
PerfCounters
.Instances, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.Instances]);
52
localCounterSet.AddCounter((int)
PerfCounters
.InstancesRate, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.InstancesRate]);
53
localCounterSet.AddCounter((int)
PerfCounters
.RMSessionsFaulted, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.RMSessionsFaulted]);
54
localCounterSet.AddCounter((int)
PerfCounters
.RMSessionsFaultedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.RMSessionsFaultedPerSecond]);
55
localCounterSet.AddCounter((int)
PerfCounters
.RMMessagesDropped, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.RMMessagesDropped]);
56
localCounterSet.AddCounter((int)
PerfCounters
.RMMessagesDroppedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.RMMessagesDroppedPerSecond]);
57
localCounterSet.AddCounter((int)
PerfCounters
.TxFlowed, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.TxFlowed]);
58
localCounterSet.AddCounter((int)
PerfCounters
.TxFlowedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.TxFlowedPerSecond]);
59
localCounterSet.AddCounter((int)
PerfCounters
.TxCommitted, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.TxCommitted]);
60
localCounterSet.AddCounter((int)
PerfCounters
.TxCommittedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.TxCommittedPerSecond]);
61
localCounterSet.AddCounter((int)
PerfCounters
.TxAborted, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.TxAborted]);
62
localCounterSet.AddCounter((int)
PerfCounters
.TxAbortedPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.TxAbortedPerSecond]);
63
localCounterSet.AddCounter((int)
PerfCounters
.TxInDoubt, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.TxInDoubt]);
64
localCounterSet.AddCounter((int)
PerfCounters
.TxInDoubtPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.TxInDoubtPerSecond]);
65
localCounterSet.AddCounter((int)
PerfCounters
.MsmqPoisonMessages, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.MsmqPoisonMessages]);
66
localCounterSet.AddCounter((int)
PerfCounters
.MsmqPoisonMessagesPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.MsmqPoisonMessagesPerSecond]);
67
localCounterSet.AddCounter((int)
PerfCounters
.MsmqRejectedMessages, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.MsmqRejectedMessages]);
68
localCounterSet.AddCounter((int)
PerfCounters
.MsmqRejectedMessagesPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.MsmqRejectedMessagesPerSecond]);
69
localCounterSet.AddCounter((int)
PerfCounters
.MsmqDroppedMessages, CounterType.RawData32, perfCounterNames[(int)
PerfCounters
.MsmqDroppedMessages]);
70
localCounterSet.AddCounter((int)
PerfCounters
.MsmqDroppedMessagesPerSecond, CounterType.RateOfCountPerSecond32, perfCounterNames[(int)
PerfCounters
.MsmqDroppedMessagesPerSecond]);
71
localCounterSet.AddCounter((int)
PerfCounters
.CallsPercentMaxCalls, CounterType.RawFraction32, perfCounterNames[(int)
PerfCounters
.CallsPercentMaxCalls]);
72
localCounterSet.AddCounter((int)
PerfCounters
.CallsPercentMaxCallsBase, CounterType.RawBase32, perfCounterNames[(int)
PerfCounters
.CallsPercentMaxCallsBase]);
73
localCounterSet.AddCounter((int)
PerfCounters
.InstancesPercentMaxInstances, CounterType.RawFraction32, perfCounterNames[(int)
PerfCounters
.InstancesPercentMaxInstances]);
74
localCounterSet.AddCounter((int)
PerfCounters
.InstancesPercentMaxInstancesBase, CounterType.RawBase32, perfCounterNames[(int)
PerfCounters
.InstancesPercentMaxInstancesBase]);
75
localCounterSet.AddCounter((int)
PerfCounters
.SessionsPercentMaxSessions, CounterType.RawFraction32, perfCounterNames[(int)
PerfCounters
.SessionsPercentMaxSessions]);
76
localCounterSet.AddCounter((int)
PerfCounters
.SessionsPercentMaxSessionsBase, CounterType.RawBase32, perfCounterNames[(int)
PerfCounters
.SessionsPercentMaxSessionsBase]);
83
this.counters = new CounterData[(int)
PerfCounters
.TotalCounters]; // Cache to dodge dictionary lookups in ServiceModelInstance
84
for (int i = 0; i < (int)
PerfCounters
.TotalCounters; i++)
107
this.counters[(int)
PerfCounters
.Calls].Increment();
108
this.counters[(int)
PerfCounters
.CallsPerSecond].Increment();
109
this.counters[(int)
PerfCounters
.CallsOutstanding].Increment();
114
this.counters[(int)
PerfCounters
.CallsOutstanding].Decrement();
119
this.counters[(int)
PerfCounters
.CallsFailed].Increment();
120
this.counters[(int)
PerfCounters
.CallsFailedPerSecond].Increment();
121
this.counters[(int)
PerfCounters
.CallsOutstanding].Decrement();
126
this.counters[(int)
PerfCounters
.CallsFaulted].Increment();
127
this.counters[(int)
PerfCounters
.CallsFaultedPerSecond].Increment();
128
this.counters[(int)
PerfCounters
.CallsOutstanding].Decrement();
134
this.counters[(int)
PerfCounters
.CallDuration].IncrementBy(time);
135
this.counters[(int)
PerfCounters
.CallDurationBase].Increment();
140
this.counters[(int)
PerfCounters
.SecurityValidationAuthenticationFailures].Increment();
141
this.counters[(int)
PerfCounters
.SecurityValidationAuthenticationFailuresPerSecond].Increment();
146
this.counters[(int)
PerfCounters
.CallsNotAuthorized].Increment();
147
this.counters[(int)
PerfCounters
.CallsNotAuthorizedPerSecond].Increment();
152
this.counters[(int)
PerfCounters
.Instances].Increment();
153
this.counters[(int)
PerfCounters
.InstancesRate].Increment();
158
this.counters[(int)
PerfCounters
.Instances].Decrement();
163
this.counters[(int)
PerfCounters
.RMSessionsFaulted].Increment();
164
this.counters[(int)
PerfCounters
.RMSessionsFaultedPerSecond].Increment();
169
this.counters[(int)
PerfCounters
.RMMessagesDropped].Increment();
170
this.counters[(int)
PerfCounters
.RMMessagesDroppedPerSecond].Increment();
175
this.counters[(int)
PerfCounters
.TxCommitted].Increment();
176
this.counters[(int)
PerfCounters
.TxCommittedPerSecond].Increment();
181
this.counters[(int)
PerfCounters
.TxInDoubt].Increment();
182
this.counters[(int)
PerfCounters
.TxInDoubtPerSecond].Increment();
187
this.counters[(int)
PerfCounters
.TxAborted].Increment();
188
this.counters[(int)
PerfCounters
.TxAbortedPerSecond].Increment();
193
this.counters[(int)
PerfCounters
.TxFlowed].Increment();
194
this.counters[(int)
PerfCounters
.TxFlowedPerSecond].Increment();
199
this.counters[(int)
PerfCounters
.MsmqDroppedMessages].Increment();
200
this.counters[(int)
PerfCounters
.MsmqDroppedMessagesPerSecond].Increment();
205
this.counters[(int)
PerfCounters
.MsmqPoisonMessages].Increment();
206
this.counters[(int)
PerfCounters
.MsmqPoisonMessagesPerSecond].Increment();
211
this.counters[(int)
PerfCounters
.MsmqRejectedMessages].Increment();
212
this.counters[(int)
PerfCounters
.MsmqRejectedMessagesPerSecond].Increment();
System\ServiceModel\Dispatcher\ServiceThrottle.cs (12)
138
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.CallsPercentMaxCallsBase, this.Calls.Capacity);
155
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.SessionsPercentMaxSessionsBase, this.Sessions.Capacity);
172
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.InstancesPercentMaxInstancesBase, this.InstanceContexts.Capacity);
236
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.InstancesPercentMaxInstancesBase, instanceContextsFt.Capacity);
246
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.CallsPercentMaxCallsBase, this.calls.Capacity);
256
this.servicePerformanceCounters.SetThrottleBase((int)ServicePerformanceCounters.
PerfCounters
.SessionsPercentMaxSessionsBase, this.sessions.Capacity);
427
this.servicePerformanceCounters.IncrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.CallsPercentMaxCalls);
432
this.servicePerformanceCounters.DecrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.CallsPercentMaxCalls);
445
this.servicePerformanceCounters.IncrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.InstancesPercentMaxInstances);
450
this.servicePerformanceCounters.DecrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.InstancesPercentMaxInstances);
463
this.servicePerformanceCounters.IncrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.SessionsPercentMaxSessions);
468
this.servicePerformanceCounters.DecrementThrottlePercent((int)ServicePerformanceCounters.
PerfCounters
.SessionsPercentMaxSessions);