glean / mozilla.telemetry.glean.private / HistogramBase

HistogramBase

interface HistogramBase

A common interface to be implemented by all the histogram-like metric types supported by the Glean SDK.

Functions

accumulateSamples

abstract fun accumulateSamples(samples: LongArray): Unit

Accumulates the provided samples in the metric.

Inheritors

CustomDistributionMetricType

data class CustomDistributionMetricType : HistogramBase

This implements the developer facing API for recording custom distribution metrics.

MemoryDistributionMetricType

class MemoryDistributionMetricType : HistogramBase

This implements the developer facing API for recording memory distribution metrics.

TimingDistributionMetricType

class TimingDistributionMetricType : HistogramBase

This implements the developer facing API for recording timing distribution metrics.