execution_metrics library

Measure how long functions take in Dart and Flutter apps.

Classes

ExecutionMetrics
Measures how long a task takes and reports it.
TaskResult
The outcome of a measured task.

Functions

taskResultFromJson(String str) → TaskResult
Decodes a TaskResult from a JSON string.
taskResultToJson(TaskResult data) → String
Encodes a TaskResult as a JSON string.

Typedefs

ExecutionLogger = void Function(String message)
Receives the formatted report printed when a measurement stops.