[PATCH] Improve memory statistics report readability.
Martin Liška
mliska@suse.cz
Tue Feb 26 14:28:00 GMT 2019
Hi.
The patch is fixing an error in vec_safe_grow_cleared function.
Apart from that I improved readability of the report.
Patch bootstrap with --enable-gather-detailed-mem-stats.
Ready to be installed?
Thanks,
Martin
gcc/ChangeLog:
2019-02-26 Martin Liska <mliska@suse.cz>
* alloc-pool.h (struct pool_usage): Remove extra
print_dash_line.
* bitmap.h (struct bitmap_usage): Likewise.
* ggc-common.c (struct ggc_usage): Likewise.
* mem-stats.h (struct mem_usage): Likewise.
(mem_alloc_description::dump): Print dash lines
here and repeat header at the end of a table report.
It's then more readable.
* tree-phinodes.c (phinodes_print_statistics): Make
horizontal alignment.
* tree-ssanames.c (ssanames_print_statistics): Likewise.
* vec.c (struct vec_usage): Remove extra print_dash_line.
* vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
libcpp/ChangeLog:
2019-02-26 Martin Liska <mliska@suse.cz>
* symtab.c (ht_dump_statistics): Make
horizontal alignment for statistics.
---
gcc/alloc-pool.h | 3 ---
gcc/bitmap.h | 1 -
gcc/ggc-common.c | 3 ---
gcc/mem-stats.h | 9 ++++++---
gcc/tree-phinodes.c | 4 ++--
gcc/tree-ssanames.c | 4 ++--
gcc/vec.c | 3 ---
gcc/vec.h | 2 +-
libcpp/symtab.c | 24 +++++++++++++-----------
9 files changed, 24 insertions(+), 29 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-memory-statistics-report-readability.patch
Type: text/x-patch
Size: 7298 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190226/cb3610e8/attachment.bin>
More information about the Gcc-patches
mailing list