ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
authorZdenek Dvorak <dvorakz@suse.cz>
Tue, 17 May 2005 19:41:38 +0000 (21:41 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Tue, 17 May 2005 19:41:38 +0000 (19:41 +0000)
commit8d18c628dde98c3706cdce5a4badf9ebfe8173e5
tree512365504e48b610718f9943598dee4de12ad4ba
parent9caf90a8ea7640c4e869a9d0d3f51bc80a329fa0
ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.

* ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
* ggc-zone.c (ggc_alloc_zone_1): Ditto.
* timevar.c (timevar_ggc_mem_total): New variable.
(GGC_MEM_BOUND): New constant.
(get_time): Record ggc memory status.
(timevar_accumulate): Accumulate amount of ggc memory.
(timevar_print): Print consumption of ggc memory.
* timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
* timevar.h (struct timevar_time_def): Add ggc_mem field.
(timevar_ggc_mem_total): Declare.

From-SVN: r99848
gcc/ChangeLog
gcc/ggc-page.c
gcc/ggc-zone.c
gcc/timevar.c
gcc/timevar.def
gcc/timevar.h