Please sign in to comment.
Some changes to make GC_dump() a little more useful.
gc_dump() will now print a label for the dump if one is given, if none is given then a label is created using the current gc major collection number. This makes it easier to work with multiple dumps in a single file. In each dump write the elapsed mutator time. This will make plotting heap changes over time possible. include/gc.h: GC_dump() now takes an argument used to "label" the dump. Making it easier to create and use multiple dumps. misc.c: gc_dump() will now print a label for the dump if one is given, if none is given then a label is created using the current gc major collection number. in the dump write the elapsed mutator time. this is calculated by subtracting the current time from gc_init_time (a new variable) and then subtracting the time spent collecting (gc_total_gc_time). If debugging support is compiled in, then set GC_calc_gc_time to 1 and record the time the GC was initialised, as this could be used by calls to GC_dump(). include/private/gc.h: Conform to GC_dump() change. Export GC_init_time variable. alloc.c: Add GC_init_time variable.
- Loading branch information...
Showing with 29 additions and 5 deletions.