pub fn preview_diagnostics(
state: State<'_, PreviewDiagnostics>,
) -> DiagnosticsSnapshotExpand description
Snapshot the camera-pipeline diagnostics (M-CAM.3 / AUT-257 diagnostic addition).
Returns total frames received, source dims, source fps × 100,
and the absolute path of the first-frame PNG dump (if one was
written this session). Leptos polls this every 500ms while the
Recorder surface is open to render a small overlay showing the
pipeline is alive — see the <CameraDiagnostics /> component in
crates/app-ui/src/camera_diagnostics.rs.
Wait-free on the hot path (atomic loads only, no mutex on the
counters); the dump-path read takes a Mutex<Option<PathBuf>>
briefly but only when the snapshot is requested.