pub fn send_system_metrics_forever()Expand description
Continuously sends system-wide CPU and memory usage metrics.
This function runs in a loop, refreshing system information at regular intervals
and emitting imetric! and fmetric! events for total memory, used memory,
free memory, and global CPU usage. Every SLOW_SAMPLE_INTERVAL, it also
emits this process’s RSS/virtual memory size and, when built with the
jemalloc feature on a non-Windows target, jemalloc’s own runtime stats.