diff options
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index c97b84eff03..15f22c9f7f4 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -1203,6 +1203,9 @@ ggc_alloc_stat (size_t size MEM_STAT_DECL) information is used in deciding when to collect. */ G.allocated += object_size; + /* For timevar statistics. */ + timevar_ggc_mem_total += object_size; + #ifdef GATHER_STATISTICS { size_t overhead = object_size - size; |