* include/gc.h (GC_prof_stats_s): Add expl_freed_bytes_since_gc field
(to the end of the structure).
* misc.c [!GC_GET_HEAP_USAGE_NOT_NEEDED] (fill_prof_stats): Store
GC_bytes_freed value to pstats->expl_freed_bytes_since_gc.
GC_word reclaimed_bytes_before_gc;
/* Approximate number of bytes reclaimed before the recent */
/* garbage collection. The value may wrap. */
+ GC_word expl_freed_bytes_since_gc;
+ /* Number of bytes freed explicitly since the recent GC. */
+ /* Same as returned by GC_get_expl_freed_bytes_since_gc(). */
};
/* Atomically get GC statistics (various global counters). Clients */
pstats->bytes_reclaimed_since_gc = GC_bytes_found > 0 ?
(word)GC_bytes_found : 0;
pstats->reclaimed_bytes_before_gc = GC_reclaimed_bytes_before_gc;
+ pstats->expl_freed_bytes_since_gc = GC_bytes_freed; /* since gc-7.7 */
}
# include <string.h> /* for memset() */