ggc-zone.c (struct alloc_zone): Add statistics counters.
authorDaniel Jacobowitz <dan@debian.org>
Mon, 9 Aug 2004 23:11:08 +0000 (23:11 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Mon, 9 Aug 2004 23:11:08 +0000 (23:11 +0000)
commitb9bfca8100c3db821b58a88bea733d83d4bf2c28
treee8cd23456364903f50b737affe182e0729fd39fc
parentfdded40102ee40d7acbcb6bc2518e5ec14245688
ggc-zone.c (struct alloc_zone): Add statistics counters.

* 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.

From-SVN: r85729
gcc/ChangeLog
gcc/ggc-zone.c