glean / mozilla.telemetry.glean.private / TimingDistributionMetricType / accumulateSamples


fun accumulateSamples(samples: LongArray): Unit

Overrides HistogramBase.accumulateSamples

Accumulates the provided samples in the metric.

Please note that this assumes that the provided samples are already in the "unit" declared by the instance of the implementing metric type (e.g. if the implementing class is a TimingDistributionMetricType and the instance this method was called on is using TimeUnit.Second, then samples are assumed to be in that unit).


samples - the LongArray holding the samples to be recorded by the metric.