diagnostics library

Performance diagnostics for benchmarks and sync investigations.

This is not an analytics, audit or telemetry API. Event names, fields and timing points follow the sync internals and change without notice. Events carry user, space and node ids, but never row data or SQL.

Classes

OfflineSyncDiagnostics
Opt-in performance measurements scoped to one asynchronous operation, including streams subscribed inside run. Events omit domain payloads and SQL, but may include user, space and node identifiers supplied by instrumented operations. Durations use a monotonic clock local to the operation, not wall-clock time.

Typedefs

OfflineSyncDiagnosticSink = void Function(Map<String, Object?> event)
A synchronous, best-effort consumer of optional sync measurements.