track method

SlowOperationTimer track(
  1. String description
)

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),
  );
}