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
This commit is contained in:
parent
2a8e33581b
commit
ee015909ee
|
@ -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>
|
2015-11-07 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
* tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
|
* tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
|
||||||
|
|
|
@ -866,6 +866,12 @@ dump_line_table_statistics (void)
|
||||||
fprintf (stderr, "Total used maps size: %5ld%c\n",
|
fprintf (stderr, "Total used maps size: %5ld%c\n",
|
||||||
SCALE (total_used_map_size),
|
SCALE (total_used_map_size),
|
||||||
STAT_LABEL (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");
|
fprintf (stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2015-11-06 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
|
2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
|
||||||
|
|
||||||
* config.in: Regenerate.
|
* config.in: Regenerate.
|
||||||
|
|
|
@ -1143,6 +1143,8 @@ struct linemap_stats
|
||||||
long macro_maps_used_size;
|
long macro_maps_used_size;
|
||||||
long macro_maps_locations_size;
|
long macro_maps_locations_size;
|
||||||
long duplicated_macro_maps_locations_size;
|
long duplicated_macro_maps_locations_size;
|
||||||
|
long adhoc_table_size;
|
||||||
|
long adhoc_table_entries_used;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Return the highest location emitted for a given file for which
|
/* Return the highest location emitted for a given file for which
|
||||||
|
|
|
@ -1712,6 +1712,9 @@ linemap_get_statistics (struct line_maps *set,
|
||||||
s->macro_maps_used_size = macro_maps_used_size;
|
s->macro_maps_used_size = macro_maps_used_size;
|
||||||
s->duplicated_macro_maps_locations_size =
|
s->duplicated_macro_maps_locations_size =
|
||||||
duplicated_macro_maps_locations_size;
|
duplicated_macro_maps_locations_size;
|
||||||
|
s->adhoc_table_size = (set->location_adhoc_data_map.allocated
|
||||||
|
* sizeof (struct location_adhoc_data));
|
||||||
|
s->adhoc_table_entries_used = set->location_adhoc_data_map.curr_loc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue