diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-06 18:40:56 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-06 18:40:56 +0000 |
commit | 0ffb44747125e187d0b34c99df0f04066a112fb7 (patch) | |
tree | 35d3167f828cdec190d251bc1b3ee85fef95dfbf /gcc/input.c | |
parent | 509a4f77b574a67eeb3024c0ad51d68ddffffa15 (diff) | |
download | gcc-0ffb44747125e187d0b34c99df0f04066a112fb7.tar.gz |
Add stats on adhoc table to dump_line_table_statistics
gcc/ChangeLog:
* input.c (dump_line_table_statistics): Dump stats on adhoc table.
libcpp/ChangeLog:
* include/line-map.h (struct linemap_stats): Add fields
"adhoc_table_size" and "adhoc_table_entries_used".
* line-map.c (linemap_get_statistics): Populate above fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229873 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/input.c')
-rw-r--r-- | gcc/input.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/input.c b/gcc/input.c index e7302a42589..ff80dd9708a 100644 --- a/gcc/input.c +++ b/gcc/input.c @@ -866,6 +866,12 @@ dump_line_table_statistics (void) fprintf (stderr, "Total used maps size: %5ld%c\n", SCALE (total_used_map_size), STAT_LABEL (total_used_map_size)); + fprintf (stderr, "Ad-hoc table size: %5ld%c\n", + SCALE (s.adhoc_table_size), + STAT_LABEL (s.adhoc_table_size)); + fprintf (stderr, "Ad-hoc table entries used: %5ld\n", + s.adhoc_table_entries_used); + fprintf (stderr, "\n"); } |