System\ServiceModel\Activities\Diagnostics\WorkflowServiceHostPerformanceCounters.cs (54)
84return (int)PerfCounters.WorkflowsCreated;
92return (int)PerfCounters.TotalCounters;
125localCounterSet.AddCounter((int)PerfCounters.WorkflowsCreated, CounterType.RawData32);
126localCounterSet.AddCounter((int)PerfCounters.WorkflowsCreatedPerSecond, CounterType.RateOfCountPerSecond32);
127localCounterSet.AddCounter((int)PerfCounters.WorkflowsExecuting, CounterType.RawData32);
128localCounterSet.AddCounter((int)PerfCounters.WorkflowsCompleted, CounterType.RawData32);
129localCounterSet.AddCounter((int)PerfCounters.WorkflowsCompletedPerSecond, CounterType.RateOfCountPerSecond32);
130localCounterSet.AddCounter((int)PerfCounters.WorkflowsAborted, CounterType.RawData32);
131localCounterSet.AddCounter((int)PerfCounters.WorkflowsAbortedPerSecond, CounterType.RateOfCountPerSecond32);
132localCounterSet.AddCounter((int)PerfCounters.WorkflowsInMemory, CounterType.RawData32);
133localCounterSet.AddCounter((int)PerfCounters.WorkflowsPersisted, CounterType.RawData32);
134localCounterSet.AddCounter((int)PerfCounters.WorkflowsPersistedPerSecond, CounterType.RateOfCountPerSecond32);
135localCounterSet.AddCounter((int)PerfCounters.WorkflowsTerminated, CounterType.RawData32);
136localCounterSet.AddCounter((int)PerfCounters.WorkflowsTerminatedPerSecond, CounterType.RateOfCountPerSecond32);
137localCounterSet.AddCounter((int)PerfCounters.WorkflowsLoaded, CounterType.RawData32);
138localCounterSet.AddCounter((int)PerfCounters.WorkflowsLoadedPerSecond, CounterType.RateOfCountPerSecond32);
139localCounterSet.AddCounter((int)PerfCounters.WorkflowsUnloaded, CounterType.RawData32);
140localCounterSet.AddCounter((int)PerfCounters.WorkflowsUnloadedPerSecond, CounterType.RateOfCountPerSecond32);
141localCounterSet.AddCounter((int)PerfCounters.WorkflowsSuspended, CounterType.RawData32, perfCounterNames[(int)PerfCounters.WorkflowsSuspended]);
142localCounterSet.AddCounter((int)PerfCounters.WorkflowsSuspendedPerSecond, CounterType.RateOfCountPerSecond32);
143localCounterSet.AddCounter((int)PerfCounters.WorkflowsIdlePerSecond, CounterType.RateOfCountPerSecond32);
144localCounterSet.AddCounter((int)PerfCounters.AverageWorkflowLoadTime, CounterType.AverageTimer32);
145localCounterSet.AddCounter((int)PerfCounters.AverageWorkflowLoadTimeBase, CounterType.AverageBase);
146localCounterSet.AddCounter((int)PerfCounters.AverageWorkflowPersistTime, CounterType.AverageTimer32);
147localCounterSet.AddCounter((int)PerfCounters.AverageWorkflowPersistTimeBase, CounterType.AverageBase);
280this.counters = new CounterData[(int)PerfCounters.TotalCounters];
281for (int i = 0; i < (int)PerfCounters.TotalCounters; i++)
314this.counters[(int)PerfCounters.WorkflowsCreated].Increment();
315this.counters[(int)PerfCounters.WorkflowsCreatedPerSecond].Increment();
325this.counters[(int)PerfCounters.WorkflowsExecuting].Increment();
329this.counters[(int)PerfCounters.WorkflowsExecuting].Decrement();
338this.counters[(int)PerfCounters.WorkflowsCompleted].Increment();
339this.counters[(int)PerfCounters.WorkflowsCompletedPerSecond].Increment();
347this.counters[(int)PerfCounters.WorkflowsAborted].Increment();
348this.counters[(int)PerfCounters.WorkflowsAbortedPerSecond].Increment();
356this.counters[(int)PerfCounters.WorkflowsInMemory].Increment();
364if (this.counters[(int)PerfCounters.WorkflowsInMemory].RawValue > 0 )
365this.counters[(int)PerfCounters.WorkflowsInMemory].Decrement();
373this.counters[(int)PerfCounters.WorkflowsPersisted].Increment();
374this.counters[(int)PerfCounters.WorkflowsPersistedPerSecond].Increment();
382this.counters[(int)PerfCounters.WorkflowsTerminated].Increment();
383this.counters[(int)PerfCounters.WorkflowsTerminatedPerSecond].Increment();
391this.counters[(int)PerfCounters.WorkflowsLoaded].Increment();
392this.counters[(int)PerfCounters.WorkflowsLoadedPerSecond].Increment();
400this.counters[(int)PerfCounters.WorkflowsUnloaded].Increment();
401this.counters[(int)PerfCounters.WorkflowsUnloadedPerSecond].Increment();
409this.counters[(int)PerfCounters.WorkflowsSuspended].Increment();
410this.counters[(int)PerfCounters.WorkflowsSuspendedPerSecond].Increment();
418this.counters[(int)PerfCounters.WorkflowsIdlePerSecond].Increment();
426this.counters[(int)PerfCounters.AverageWorkflowLoadTime].IncrementBy(time);
427this.counters[(int)PerfCounters.AverageWorkflowLoadTimeBase].Increment();
435this.counters[(int)PerfCounters.AverageWorkflowPersistTime].IncrementBy(time);
436this.counters[(int)PerfCounters.AverageWorkflowPersistTimeBase].Increment();