/// <summary> /// Place a copy of the value counts accumulated since accumulated (since the last interval histogram was taken) into <paramref name="targetHistogram"/>. /// This will overwrite the existing data in <paramref name="targetHistogram"/>. /// Calling <see cref="GetIntervalHistogramInto(HistogramBase)"/> will reset the value counts, and start accumulating value counts for the next interval. /// </summary> /// <param name="targetHistogram">The histogram into which the interval histogram's data should be copied.</param> public void GetIntervalHistogramInto(HistogramBase targetHistogram) { lock (_gate) { PerformIntervalSample(); _inactiveHistogram.CopyInto(targetHistogram); } }