aboutsummaryrefslogtreecommitdiff
path: root/gcc/timevar.h
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-05-17 21:41:38 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-05-17 19:41:38 +0000
commit8d18c628dde98c3706cdce5a4badf9ebfe8173e5 (patch)
tree512365504e48b610718f9943598dee4de12ad4ba /gcc/timevar.h
parent9caf90a8ea7640c4e869a9d0d3f51bc80a329fa0 (diff)
downloadgcc-8d18c628dde98c3706cdce5a4badf9ebfe8173e5.zip
gcc-8d18c628dde98c3706cdce5a4badf9ebfe8173e5.tar.gz
gcc-8d18c628dde98c3706cdce5a4badf9ebfe8173e5.tar.bz2
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
Diffstat (limited to 'gcc/timevar.h')
-rw-r--r--gcc/timevar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/timevar.h b/gcc/timevar.h
index e836600..f62f76e 100644
--- a/gcc/timevar.h
+++ b/gcc/timevar.h
@@ -61,6 +61,9 @@ struct timevar_time_def
/* Wall clock time. */
double wall;
+
+ /* Garbage collector memory. */
+ unsigned ggc_mem;
};
/* An enumeration of timing variable identifiers. Constructed from
@@ -93,4 +96,6 @@ extern void print_time (const char *, long);
extern bool timevar_enable;
+extern size_t timevar_ggc_mem_total;
+
#endif /* ! GCC_TIMEVAR_H */