On 10/23/2015 02:41 PM, David Malcolm wrote:
The stats on line-table memory usage emitted via -fmem-report
from input.c's dump_line_table_statistics don't include
information on the ad-hoc data table.

This patch adds lines like this:
  Ad-hoc table size:                     192k
  Ad-hoc table entries used:            4336

OK for trunk?

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.
OK.
jeff

Reply via email to