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: GC special object sizes


Dan Nicolaescu <dann@ics.uci.edu> writes:

> I have a small hack that prints the allocation overheads for the
> different bucket sizes when using -fmem-report. The *_under* stuff can
> be used to determine if any extra buckets need to be added to
> extra_order_size_table.
>
> Is this useful? Should it be turned in a proper patch? If yes, it
> should probably not be compiled in by default. What switch should be
> used to control that? Any other suggestions? 

Yes, I think this is useful.  I would suggest that you look into the
GATHER_STATISTICS #define, which has not done anything useful for years
but could be made useful once again.  Or, see if you can get the
statistics-gathering overhead down to the point that it can be a
runtime option (-fmem-stats=verbose or something like that).

zw


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