[Zion] Cleanup memory debug statistics slightly.

This commit is contained in:
Drew Galbraith 2023-11-15 13:10:53 -08:00
parent 10d16e129f
commit 92d8a02291
2 changed files with 21 additions and 32 deletions

View file

@ -29,19 +29,13 @@ class KernelHeap {
SlabAllocator slab_64_{64};
SlabAllocator slab_128_{128};
// Distribution collection for the purpose of investigating a slab allocator.
// 0: 0-8B
// 1: 8B-16B
// 2: 16B-32B
// 3: 32B-64B
// 4: 64B-128B
// 5: 128B-256B
// 6: 256B-512B
// 7: 512B-1KiB
// 8: 1KiB-2KiB
// 9: 2KiB-4KiB
// 10: 4KiB+
uint64_t distributions[11];
// 0: 128B-256B
// 1: 256B-512B
// 2: 512B-1KiB
// 3: 1KiB-2KiB
// 4: 2KiB-4KiB
// 5: 4KiB+
uint64_t distributions[6];
void RecordSize(uint64_t size);