Exemplo n.º 1
0
 private void Add(ref long currentDurationMs, long elapsedTimeMs)
 {
     if (currentDurationMs == -2)
     {
         currentDurationMs = 0L;
     }
     currentDurationMs += ExecutionLogContext.TimerMeasurementAdjusted(elapsedTimeMs);
 }
Exemplo n.º 2
0
 public void Subtract(TimeMetric other)
 {
     this.m_totalDurationMs = ExecutionLogContext.TimerMeasurementAdjusted(this.m_totalDurationMs - other.m_totalDurationMs);
     for (int i = 0; i < this.m_otherMetricAdjustments.Length; i++)
     {
         long durationMs = this.m_otherMetricAdjustments[i] - other.m_otherMetricAdjustments[i];
         this.m_otherMetricAdjustments[i] = ExecutionLogContext.TimerMeasurementAdjusted(durationMs);
     }
 }
Exemplo n.º 3
0
 public DataProcessingMetrics(IJobContext jobContext, ExecutionLogContext executionLogContext)
 {
     this.m_jobContext = jobContext;
     if (jobContext != null)
     {
         this.m_timers          = new Timer[6];
         this.m_totalTimeMetric = executionLogContext.CreateDataRetrievalWorkerTimer();
     }
     else
     {
         this.m_timers = null;
     }
 }
Exemplo n.º 4
0
        public long GetNormalizedAdjustedMetric(int targetIndex)
        {
            TimeMetric timeMetric = this.m_timeMetrics[targetIndex];
            long       num        = timeMetric.TotalDurationMs;

            for (int i = 0; i < this.m_timeMetrics.Length; i++)
            {
                if (i != targetIndex)
                {
                    TimeMetric timeMetric2 = this.m_timeMetrics[i];
                    num -= timeMetric2.OtherMetricAdjustments[targetIndex];
                }
            }
            return(ExecutionLogContext.NormalizeCalculatedDuration(num));
        }
Exemplo n.º 5
0
 public DataProcessingMetrics(AspNetCore.ReportingServices.ReportIntermediateFormat.DataSet dataSet, IJobContext jobContext, ExecutionLogContext executionLogContext)
     : this(jobContext, executionLogContext)
 {
     this.m_specificDataSet = dataSet;
 }
Exemplo n.º 6
0
 public void AddTime(long durationMs)
 {
     durationMs = ExecutionLogContext.TimerMeasurementAdjusted(durationMs);
     this.m_metricAdjuster.UpdateTimeMetricAdjustments(durationMs, this.m_otherMetricAdjustments);
     this.m_totalDurationMs += durationMs;
 }