diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-06 01:37:38 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-06 01:37:38 +0000 |
commit | f65ffe0d139d4b2a2fde1638ef03f87e0207182f (patch) | |
tree | a3f8d22463404090d46e02a6a9634a4d654930fb /gcc/toplev.c | |
parent | ac6a6c760194578f30436aa4963bd68d2ba83aab (diff) | |
download | gcc-f65ffe0d139d4b2a2fde1638ef03f87e0207182f.tar.gz |
* statistics.h (ALONE_PASS_MEM_STAT, ALONE_MEM_STAT_INFO,
ALONE_MEM_STAT_DECL): New macros.
* bitmap.h: Include statistics.h
(struct bitmap_head_def): Add variant with pointer to bitmap descriptor.
(bitmap_initialize_stat): Rename from bitmap_initialize; add statistics.
(bitmap_obstack_alloc_stat, bitmap_gc_alloc_stat): Declare.
* bitmap.c: Include hashtab.h
(bitmap_descriptor): New.
(bitmap_hash): New static variable
(hash_descriptor, eq_descriptor, bitmap_descriptor, register_overhead):
New static functions.
(bitmap_register): New.
(bitmap_element_free, bitmap_element_allocate, bitmap_elt_clear_from,
bitmap_obstack_release): Do accounting.
(bitmap_obstack_alloc_stat): Rename from bitmap_obstack_alloc ; do
accounting.
(bitmap_gc_alloc_stat): Likewise.
(bitmap_obstack_free, bitmap_find_bit): Do statictics.
(print_statistics, dump_bitmap_statistics): New functions.
* toplev.c (finalize): Dump bitmap statistics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index b074a9f57b3..9cc814d7fd0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1971,6 +1971,7 @@ finalize (void) dump_rtx_statistics (); dump_varray_statistics (); dump_alloc_pool_statistics (); + dump_bitmap_statistics (); dump_ggc_loc_statistics (); } |