/**
* Load stats.
*/
public StatGroup loadStats(StatsConfig config) {
StatGroup copy = stats.cloneGroup(config.getClear());
/*
* These stats are not cleared. They represent the current state of
* the cache.
*/
new LongStat(copy, CACHED_IN_SPARSE_TARGET, nINSparseTarget.get());
new LongStat(copy, CACHED_IN_NO_TARGET, nINNoTarget.get());
new LongStat(copy, CACHED_IN_COMPACT_KEY, nINCompactKey.get());
copy.addAll(selector.loadStats(config));
copy.addAll(arbiter.loadStats(config));
/*
* The number and average size of batches, by type of caller, is
* calculated each time we collect stats.
*/