AggregatedTimedBlock class final

Aggregates multiple TimedBlock objects that share a name.

It is common for the same block of code to be executed multiple times within a frame. It is useful to combine multiple executions and report the total amount of time attributed to that block of code.

Annotations

Constructors

AggregatedTimedBlock({required String name, required double duration, required int count})
Creates a timed block of code from a name and duration.
const

Properties

count int
The number of TimedBlock objects aggregated.
final
duration double
The sum of TimedBlock.duration values of aggregated blocks.
final
hashCode int
The hash code for this object.
no setterinherited
name String
A readable label for a block of code that was measured.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited