1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-16 18:50:23 +02:00

API-ify gc_print_stats; add semi-inline.h

This commit is contained in:
Andy Wingo 2022-08-15 18:16:32 +02:00
parent a00c83878e
commit 8f2f4f7c69
7 changed files with 71 additions and 66 deletions

View file

@ -2097,10 +2097,7 @@ static void* gc_call_without_gc(struct mutator *mut,
return ret;
}
static inline void print_start_gc_stats(struct heap *heap) {
}
static inline void print_end_gc_stats(struct heap *heap) {
static void gc_print_stats(struct heap *heap) {
printf("Completed %ld collections (%ld major)\n",
heap->count, heap->count - heap->minor_count);
printf("Heap size with overhead is %zd (%zu slabs)\n",