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