averageQueueDepth property

double get averageQueueDepth

Average queue depth (from snapshots)

Implementation

double get averageQueueDepth {
  if (_queueDepthHistory.isEmpty) return 0.0;
  final total = _queueDepthHistory.fold<int>(0, (sum, s) => sum + s.depth);
  return total / _queueDepthHistory.length;
}