diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-17 19:41:38 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-17 19:41:38 +0000 |
commit | 8d453ddb1de7c051409ad292b3eda08656cfdfdd (patch) | |
tree | 512365504e48b610718f9943598dee4de12ad4ba /gcc/ggc-zone.c | |
parent | 66d00abf7888c7d4d31b72132630c88662b6c28a (diff) | |
download | gcc-8d453ddb1de7c051409ad292b3eda08656cfdfdd.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99848 138bc75d-0d04-0410-961f-82ee72b054a4
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); |