This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VEC memory statistics
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Sep 2008 14:46:29 +0200
- Subject: Re: VEC memory statistics
- References: <20080911112053.GG3195@kam.mff.cuni.cz>
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.