diff options
author | Tom Tromey <tromey@redhat.com> | 2011-10-17 09:59:52 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2011-10-17 11:59:52 +0200 |
commit | 64a1a422dba4b0c09ad38310e32a223f2e16ed9d (patch) | |
tree | e11866266cf98c8e56a5c72d6c5ab06707407dc8 /libcpp/ChangeLog | |
parent | 847e697a240e6d30335335c62084743978fa2084 (diff) | |
download | gcc-64a1a422dba4b0c09ad38310e32a223f2e16ed9d.zip gcc-64a1a422dba4b0c09ad38310e32a223f2e16ed9d.tar.gz gcc-64a1a422dba4b0c09ad38310e32a223f2e16ed9d.tar.bz2 |
Add line map statistics to -fmem-report output
This patch adds statistics about line maps' memory consumption and
macro expansion to the output of -fmem-report. It has been useful in
trying to reduce the memory consumption of the macro maps support.
Co-Authored-By: Dodji Seketeli <dodji@redhat.com>
From-SVN: r180085
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index bd86466..fad0da6 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,6 +1,18 @@ 2011-10-15 Tom Tromey <tromey@redhat.com> Dodji Seketeli <dodji@redhat.com> + * line-map.h (struct linemap_stats): Declare new struct. + (linemap_get_statistics): Declare ... + * line-map.c (linemap_get_statistics): ... new function. + * macro.c (num_expanded_macros_counter, num_macro_tokens_counter): + Declare new counters. + (enter_macro_context, replace_args): Update + num_macro_tokens_counter. + (cpp_get_token_1): Update num_expanded_macros_counter. + +2011-10-15 Tom Tromey <tromey@redhat.com> + Dodji Seketeli <dodji@redhat.com> + * include/cpplib.h (struct cpp_options)<debug>: New struct member. * include/line-map.h (linemap_dump_location): Declare ... * line-map.c (linemap_dump_location): ... new function. |