psset: keep aggregate stats.

This will let us quickly query these stats to make purging decisions quickly.
This commit is contained in:
David Goldblatt
2020-12-06 12:49:03 -08:00
committed by David Goldblatt
parent da63f23e68
commit 9fd9c876bb
3 changed files with 62 additions and 15 deletions

View File

@@ -374,6 +374,7 @@ stats_expect(psset_t *psset, size_t nactive) {
stats_expect_empty(&psset->stats.nonfull_slabs[i][0]);
}
}
expect_zu_eq(nactive, psset_nactive(psset), "");
}
TEST_BEGIN(test_stats) {