Amib.Threading.Internal.STPInstancePerformanceCounters.SampleThreads C# (CSharp) Method

SampleThreads() public method

public SampleThreads ( long activeThreads, long inUseThreads ) : void
activeThreads long
inUseThreads long
return void
        public void SampleThreads(long activeThreads, long inUseThreads)
        {
            GetCounter(STPPerformanceCounterType.ActiveThreads).Set(activeThreads);
            GetCounter(STPPerformanceCounterType.InUseThreads).Set(inUseThreads);
            GetCounter(STPPerformanceCounterType.OverheadThreads).Set(activeThreads - inUseThreads);

            GetCounter(STPPerformanceCounterType.OverheadThreadsPercentBase).Set(activeThreads - inUseThreads);
            GetCounter(STPPerformanceCounterType.OverheadThreadsPercent).Set(inUseThreads);
        }