track method
Create a timer for tracking a potentially slow operation.
Implementation
SlowOperationTimer track(String description) {
return SlowOperationTimer(
description: description,
thresholdMs: _thresholdMs,
onSlow: (op) => addSlowOperation(op.description, op.durationMs),
);
}