public STPInstancePerformanceCounter( string instance, STPPerformanceCounterType spcType) : this() { STPPerformanceCounters counters = STPPerformanceCounters.Instance; _pcs = new PerformanceCounter( STPPerformanceCounters._stpCategoryName, counters._stpPerformanceCounters[(int)spcType].Name, instance, false); _pcs.RawValue = _pcs.RawValue; }
// Methods static STPPerformanceCounters() { _instance = new STPPerformanceCounters(); }