describe method

WatchStats describe()

What the watch has cost so far.

Pull-based as well as pushed, so the cost can be read by something that is not subscribed — and so it survives the case that matters most, a watch whose events are arriving too slowly to trust.

Implementation

WatchStats describe() => WatchStats(
  watching: _watching,
  entryId: entryIdOf(),
  node: _nodeId,
  minIntervalMillis: _minInterval.inMilliseconds,
  frames: _frames,
  pushes: _pushes,
  nodes: _nodeCount,
  hashMicrosLast: _hashMicrosLast,
  hashMicrosMax: _hashMicrosMax,
  hashMicrosMean: _frames == 0 ? 0 : _hashMicrosTotal ~/ _frames,
  resolveMicrosLast: _resolveMicrosLast,
  resolved: _node != null,
);