Esempio n. 1
0
 protected void TracePerf(OpTimePair timing, int?labelPad = null)
 {
     if (TraceEnabled)
     {
         TracePerf(timing.Format(labelPad));
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Collects operation pair timing
        /// </summary>
        /// <param name="time">The time to collect</param>
        /// <param name="labelPad">For tracing, the width of the timing label</param>
        protected void Collect(OpTimePair time, int?labelPad = null)
        {
            Enqueue(time.Left, time.Right);

            if (TraceEnabled)
            {
                TracePerf(time.Format(labelPad));
            }
        }