summary method

Future<Map<ActivitySpan, int>> summary()

Returns a summary map of activity counts for all spans at the current time.

Implementation

Future<Map<ActivitySpan, int>> summary() async {
  return {
    for (final span in ActivitySpan.values) span: await amountThis(span),
  };
}