diff options
Diffstat (limited to 'gcc/ggc-zone.c')
-rw-r--r-- | gcc/ggc-zone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ggc-zone.c b/gcc/ggc-zone.c index 596bbbab7f4..e3c72679d51 100644 --- a/gcc/ggc-zone.c +++ b/gcc/ggc-zone.c @@ -1228,6 +1228,8 @@ ggc_alloc_zone_stat (size_t orig_size, struct alloc_zone *zone /* Keep track of how many bytes are being allocated. This information is used in deciding when to collect. */ zone->allocated += size; + + timevar_ggc_mem_total += (size + CHUNK_OVERHEAD); #ifdef GATHER_STATISTICS ggc_record_overhead (orig_size, size - orig_size, result PASS_MEM_STAT); |