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