AggregatedTimedBlock constructor

const AggregatedTimedBlock({
  1. required String name,
  2. required double duration,
  3. required int count,
})

Creates a timed block of code from a name and duration.

The name should be sufficiently unique and descriptive for someone to easily tell which part of code was measured.

Implementation

const AggregatedTimedBlock({
  required this.name,
  required this.duration,
  required this.count,
}) : assert(duration >= 0);