diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-29 20:57:11 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-29 20:57:11 +0000 |
commit | 2a8997e85cd4ad92644cad6932aa2b5e2115d610 (patch) | |
tree | 467a74cb03ab3a07329d87c25f28745ba9ed5e7f /gcc/flags.h | |
parent | 14da2a08382098d9b235ebe6ab1d02e5c3cb24d0 (diff) | |
download | gcc-2a8997e85cd4ad92644cad6932aa2b5e2115d610.tar.gz |
* flags.h (time_report, mem_report): New global flags.
* toplev.c: Define time_report and mem_report.
(f_options): Add -ftime-report and -fmem-report.
(compile_file): Turn on time_report if quiet_flag is off.
Call ggc_print_statistics at very end if mem_report is on.
* timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
* ggc-common.c (ggc_print_statistics): Rename to
ggc_print_common_statistics; all callers changed. Scale
quantities above 10K to kilobytes and above 10M to megabytes.
* ggc-page.c (ggc_page_print_statistics): Rename to
ggc_print_statistics. Report memory consumed by internal data
structures for each allocation bucket. Scale quantities above
10K to kilobytes and above 10M to megabytes.
* ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
Define tally_leaves always.
(ggc_print_statistics): New function.
* ggc.h: Adjust for renamed functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index a294c37de20..21f9237c629 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -63,6 +63,15 @@ extern int optimize_size; extern int quiet_flag; +/* Print times taken by the various passes. -ftime-report. */ + +extern int time_report; + +/* Print memory still in use at end of compilation (which may have little + to do with peak memory consumption). -fmem-report. */ + +extern int mem_report; + /* Don't print warning messages. -w. */ extern int inhibit_warnings; |