diff options
author | Jan Hubicka <jh@suse.cz> | 2006-12-06 02:37:38 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2006-12-06 01:37:38 +0000 |
commit | f75709c6f83fbf654b8bc283f27ddd8d4f894227 (patch) | |
tree | a3f8d22463404090d46e02a6a9634a4d654930fb /gcc/statistics.h | |
parent | 2372a0625790417f2ca021d3e5016554930900a4 (diff) | |
download | gcc-f75709c6f83fbf654b8bc283f27ddd8d4f894227.zip gcc-f75709c6f83fbf654b8bc283f27ddd8d4f894227.tar.gz gcc-f75709c6f83fbf654b8bc283f27ddd8d4f894227.tar.bz2 |
statistics.h (ALONE_PASS_MEM_STAT, [...]): New macros.
* 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.
From-SVN: r119573
Diffstat (limited to 'gcc/statistics.h')
-rw-r--r-- | gcc/statistics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/statistics.h b/gcc/statistics.h index a75743c..b7bdcd7 100644 --- a/gcc/statistics.h +++ b/gcc/statistics.h @@ -24,11 +24,17 @@ #define GCC_STATISTICS #ifdef GATHER_STATISTICS #define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function) +#define ALONE_MEM_STAT_DECL const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function) #define PASS_MEM_STAT , _loc_name, _loc_line, _loc_function +#define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function #define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__ +#define ALONE_MEM_STAT_INFO __FILE__, __LINE__, __FUNCTION__ #else #define MEM_STAT_DECL +#define ALONE_MEM_STAT_DECL void #define PASS_MEM_STAT +#define ALONE_PASS_MEM_STAT #define MEM_STAT_INFO +#define ALONE_MEM_STAT_INFO #endif #endif |