예제 #1
0
        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;
        }
예제 #2
0
 // Methods
 static STPPerformanceCounters()
 {
     _instance = new STPPerformanceCounters();
 }
예제 #3
0
		// Methods
		static STPPerformanceCounters()
		{
			_instance = new STPPerformanceCounters();
		}