mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 01:57:20 +03:00
psset: keep aggregate stats.
This will let us quickly query these stats to make purging decisions quickly.
This commit is contained in:
parent
da63f23e68
commit
9fd9c876bb
3 changed files with 62 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue