Contents

Histogram

A distribution of values organized into buckets.

Declaration

struct Histogram<DimensionType> where DimensionType : Dimension

Mentioned in

Discussion

Each Histogram.Bucket in the buckets array covers a range from lowerBound to upperBound and reports the number of samples in that range via count.

You encounter Histogram as the type of properties on various metric structs, such as histogram and histogram:

let histogram = metric.histogram // Histogram<UnitDuration>
for bucket in histogram.buckets {
    let lower = bucket.lowerBound
    let upper = bucket.upperBound
    let count = bucket.count
}

This type replaces MXHistogram.

Topics

Buckets

Structures

See Also

Supporting types