This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: VEC memory statistics


Hello Jan,

* Jan Hubicka wrote on Thu, Sep 11, 2008 at 01:20:53PM CEST:
> 
> 	* toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
> 	* vec.c: Include hashtab.h

This requires adjusting the vec.o rule in Makefile.in.

Cheers,
Ralf

> 	(vec_descriptor, ptr_hash_entry): New structures.
> 	(vec_desc_hash, vec_ptr_map): New static variables.
> 	(hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
> 	register_overhead, free_overhead, vec_heap_free): New functions.
> 	(vec_gc_o_reserve_1): ggc_free when resizing to 0.
> 	(vec_heap_o_reserve_1): free when resizing to 0; add statistics.
> 	(cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]