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 #include "NonMoving.h" 12 13 struct NonmovingAllocCensus { 14 uint32_t n_active_segs; 15 uint32_t n_filled_segs; 16 uint32_t n_live_blocks; 17 uint32_t n_live_words; 18 }; 19 20 21 struct NonmovingAllocCensus 22 nonmovingAllocatorCensusWithWords(struct NonmovingAllocator *alloc); 23 24 struct NonmovingAllocCensus 25 nonmovingAllocatorCensus(struct NonmovingAllocator *alloc); 26 27 void nonmovingPrintAllocatorCensus(void); 28 void nonmovingTraceAllocatorCensus(void); 29