public ExPerformanceCounter(string categoryName, string counterName, string instanceName, ExPerformanceCounter totalInstanceCounter, params ExPerformanceCounter[] autoUpdateCounters) : this(categoryName, counterName, instanceName, false, totalInstanceCounter, autoUpdateCounters)
 {
 }
Пример #2
0
 public AverageTimeCounter(ExPerformanceCounter averageCount, ExPerformanceCounter averageBase) : base(averageCount, averageBase)
 {
 }
 public ExPerformanceCounter(string categoryName, string counterName, string instanceName, bool processLifeTime, ExPerformanceCounter totalInstanceCounter, params ExPerformanceCounter[] autoUpdateCounters)
 {
     this.counter = PerformanceCounterFactory.CreatePerformanceCounter();
     this.counter.CategoryName = categoryName;
     this.counter.CounterName  = counterName;
     this.counter.InstanceName = instanceName;
     this.counter.ReadOnly     = false;
     this.counterIsUsable      = true;
     if (processLifeTime)
     {
         this.counter.InstanceLifetime = PerformanceCounterInstanceLifetime.Process;
     }
     this.totalInstanceCounter = totalInstanceCounter;
     this.autoUpdateCounters   = autoUpdateCounters;
 }
Пример #4
0
 public AverageTimeCounter(ExPerformanceCounter averageCount, ExPerformanceCounter averageBase, bool autoStart) : base(averageCount, averageBase, autoStart)
 {
 }