This repository has been archived by the owner on Apr 10, 2019. It is now read-only.
forked from ivmai/bdwgc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters