//! Process-lifetime counters backing the cleanup-sweep metrics (`moadim_cleanup_removed_total`,
//! `moadim_cleanup_freed_bytes_total`) exposed by `GET /api/v1/metrics`
//! (`crate::routes::metrics`). Both the periodic background sweep and the on-demand
//! `POST /routines/cleanup` route funnel through `cleanup_expired_workbenches` (see
//! `super::cleanup_expired_workbenches`), so recording a sweep once there covers both triggers.
//!
//! Deliberately in-memory rather than persisted: like the run-duration histogram in
//! `crate::routes::metrics`, these are process-lifetime counters that reset to `0` on a daemon
//! restart, which matches how an operator reads a Prometheus counter after a scrape target
//! restarts (a reset, not a decrease).
use ;
/// Total workbenches removed by every cleanup sweep since this process started.
static REMOVED_TOTAL: AtomicU64 = new;
/// Total bytes freed by every cleanup sweep since this process started.
static FREED_BYTES_TOTAL: AtomicU64 = new;
/// Add one sweep's `removed`/`freed_bytes` ([`super::ReapStats`]) to the running totals.
pub
/// Current `(removed_total, freed_bytes_total)` snapshot, read by `GET /api/v1/metrics`.
pub