blob: 1c7c657cc1c3b6cf076791a89e5b7455f3df2558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 1998-2018
*
* Non-moving garbage collector and allocator: Accounting census
*
* ---------------------------------------------------------------------------*/
#pragma once
struct NonmovingAllocCensus {
uint32_t n_active_segs;
uint32_t n_filled_segs;
uint32_t n_live_blocks;
uint32_t n_live_words;
};
struct NonmovingAllocCensus
nonmovingAllocatorCensusWithWords(struct NonmovingAllocator *alloc);
struct NonmovingAllocCensus
nonmovingAllocatorCensus(struct NonmovingAllocator *alloc);
void nonmovingPrintAllocatorCensus(void);
|