aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-11-06 18:40:56 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-11-06 18:40:56 +0000
commitee015909ee4656557a0fad1795dfd1bd2391735d (patch)
tree35d3167f828cdec190d251bc1b3ee85fef95dfbf /gcc
parent2a8e33581b09efb6f9e9897b82133e510062fe91 (diff)
downloadgcc-ee015909ee4656557a0fad1795dfd1bd2391735d.zip
gcc-ee015909ee4656557a0fad1795dfd1bd2391735d.tar.gz
gcc-ee015909ee4656557a0fad1795dfd1bd2391735d.tar.bz2
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. From-SVN: r229873
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/input.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 64388a4..77bc739 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-06 David Malcolm <dmalcolm@redhat.com>
+
+ * input.c (dump_line_table_statistics): Dump stats on adhoc table.
+
2015-11-07 Jan Hubicka <hubicka@ucw.cz>
* tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
diff --git a/gcc/input.c b/gcc/input.c
index e7302a4..ff80dd9 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");
}