Пример #1
0
 public TimeMetric(TimeMetric other)
 {
     m_indexInCollection      = other.m_indexInCollection;
     m_timer                  = new Timer();
     m_totalDurationMs        = other.m_totalDurationMs;
     m_isRunning              = false;
     m_otherMetricAdjustments = (long[])other.m_otherMetricAdjustments.Clone();
     m_metricAdjuster         = other.m_metricAdjuster;
 }
 internal ExecutionLogContext(IJobContext jobContext)
 {
     m_activeScaleCaches.Push(new ScaleCacheInfo(int.MinValue));
     m_jobContext = jobContext;
     if (m_jobContext != null)
     {
         m_metricManager = new TimeMetricManager(TimeMetricCount);
     }
 }
Пример #3
0
 public TimeMetric(int indexInCollection, TimeMetricManager metricAdjuster, int otherMetricCount)
 {
     m_indexInCollection      = indexInCollection;
     m_timer                  = new Timer();
     m_totalDurationMs        = 0L;
     m_isRunning              = false;
     m_otherMetricAdjustments = new long[otherMetricCount];
     m_metricAdjuster         = metricAdjuster;
 }