cat_gateway::metrics::memory

Function init_metrics_reporter

Source
pub(crate) fn init_metrics_reporter()
Expand description

Starts a background thread to periodically update memory metrics.

This function spawns a thread that updates the memory metrics at regular intervals defined by METRICS_MEMORY_INTERVAL.