public STPInstancePerformanceCounters(string instance) { _pcs = new STPInstancePerformanceCounter[(int)STPPerformanceCounterType.LastCounter]; STPPerformanceCounters counters = STPPerformanceCounters.Instance; for (int i = 0; i < _pcs.Length; i++) { if (instance != null) { _pcs[i] = new STPInstancePerformanceCounter( instance, (STPPerformanceCounterType)i); } else { _pcs[i] = _stpInstanceNullPerformanceCounter; } } }
public STPInstancePerformanceCounters(string instance) { _pcs = new STPInstancePerformanceCounter[(int)STPPerformanceCounterType.LastCounter]; STPPerformanceCounters counters = STPPerformanceCounters.Instance; for (int i = 0; i < _pcs.Length; i++) { if (instance != null) { _pcs[i] = new STPInstancePerformanceCounter( instance, (STPPerformanceCounterType) i); } else { _pcs[i] = _stpInstanceNullPerformanceCounter; } } }
// Methods static STPInstancePerformanceCounters() { _stpInstanceNullPerformanceCounter = new STPInstanceNullPerformanceCounter(); }