pub(super) fn spawn_statistics_scraper<Stats: PackableStats + Send + 'static>(
    statistics_collection_id: GlobalId,
    collection_mgmt: CollectionManager,
    shared_stats: Arc<Mutex<BTreeMap<GlobalId, BTreeMap<usize, Stats>>>>
) -> Box<dyn Any + Send + Sync>
Expand description

Spawns a task that continually (at an interval) writes statistics from storaged’s that are consolidated in shared memory in the controller.