Event ring buffer to walk; iterated newest-first for early exit.
Rolling window over which to count queries/loads.
Tighter window for bandwidth (load event memory bytes).
Cache timeout — re-use cached values if last calc was recent.
Mutable target — rates write into this object in place.
Now-timestamp (ms). Pass
Date.now()from the caller.