diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2003-12-22 07:42:43 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2003-12-21 23:42:43 -0800 |
commit | 439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2 (patch) | |
tree | 92e1b9a44d211c848fd96269a939fdf393e245ab /gcc/toplev.c | |
parent | d9dd2c4ed71f3f1f5cb20424c7bb753eda60ac96 (diff) | |
download | gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.zip gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.tar.gz gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.tar.bz2 |
Patch from Dan Nicolaescu
* rtl.h (dump_rtx_statistics): Declare it.
* rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
rtx_alloc_sizes): New static vars.
(rtx_alloc, rtvec_alloc): Update them.
(dump_rtx_statistics): New function.
* toplev.c (finalize): Call it.
* ggc-page.c (struct globals): Fix comments. Add new member
total_allocated_per_order.
(ggc_alloc): Keep track of the total allocated memory.
(ggc_print_statistics): Clarify message. Print total allocated
memory stats.
* configure.in (gather-detailed-mem-stats): New flag.
* configure: Regenerate.
* config.in: Regenerate.
* doc/install.texi (Configuration): Document
--enable-gather-detailed-mem-stats.
From-SVN: r74930
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 252fe41..2ed4c31 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4548,6 +4548,7 @@ finalize (void) ggc_print_statistics (); stringpool_statistics (); dump_tree_statistics (); + dump_rtx_statistics (); } /* Free up memory for the benefit of leak detectors. */ |