// Copyright 2024-2026 Jonathan Shook
// SPDX-License-Identifier: Apache-2.0
//! TUI reporter: receives base-cadence metrics snapshots and forwards
//! them to the TUI render thread via an mpsc channel. Used for
//! sparkline feeds, history rings, and the live percentile display.
//!
//! For per-window (10s / 1m / …) sample-weighted views the TUI
//! reads from a shared [`nmbrs_metrics::metrics_query::MetricsQuery`] —
//! see SRD-42.
use mpsc;
use Reporter;
use MetricSet;
/// A metrics reporter that forwards snapshots to the TUI via a channel.