Contents

custom(of:label:_:)

Computes a custom aggregation and adds it to the group.

Declaration

mutating func custom(of metric: Metric, label: String, _ body: ([Double]) -> Double)

Parameters

  • metric:

    The metric to aggregate.

  • label:

    The label for this statistic in the aggregated results.

  • body:

    A closure that receives the metric’s values and returns a computed statistic.