* ggc-zone.c (struct alloc_zone): Add statistics counters.
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Aug 2004 23:11:08 +0000 (23:11 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Aug 2004 23:11:08 +0000 (23:11 +0000)
commit191fb66c29dccd9ee850b90037478eca1b63b566
treee8cd23456364903f50b737affe182e0729fd39fc
parent7f4f70644afb8c668efccb0a0c28da0df52148a4
* ggc-zone.c (struct alloc_zone): Add statistics counters.
(always_collect): New flag.
(ggc_alloc_zone_1): Update statistics support.  Don't include
overhead in allocated counter.
(sweep_pages): Update allocated counter for large pages.  Don'y
include overhead.
(ggc_collect_1): Always collect.
(ggc_collect): Honor always_collect flag.  Sum all zones to decide
whether to collect.
(SCALE, LABEL): New macros.
(ggc_print_statistics): Add statistics support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85729 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ggc-zone.c