diff options
| author | Richard Kistruck | 2008-11-07 16:11:37 +0000 |
|---|---|---|
| committer | Richard Kistruck | 2008-11-07 16:11:37 +0000 |
| commit | 55c7940bdb5290453e307db4692324cee1c67ffc (patch) | |
| tree | c18604d9f1ee191e6347f7e92b6fcede643f4cf9 /mps/code/amcss.c | |
| parent | eec7b1abfd9ee9482cce85ec0eb744e83c351bb1 (diff) | |
| download | emacs-55c7940bdb5290453e307db4692324cee1c67ffc.tar.gz emacs-55c7940bdb5290453e307db4692324cee1c67ffc.zip | |
Mps br/timing:
message.c: maintain postedClock field, set it with mps_clock() at post time;
amcss.c: call and display mps_message_clock() on _gc_start & _gc messages.
Copied from Perforce
Change: 166677
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/amcss.c')
| -rw-r--r-- | mps/code/amcss.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mps/code/amcss.c b/mps/code/amcss.c index 2efac94eaef..80d7eb71791 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c | |||
| @@ -63,7 +63,8 @@ static void report(mps_arena_t arena) | |||
| 63 | /* @@@@ is using these macros in a switch supported? */ | 63 | /* @@@@ is using these macros in a switch supported? */ |
| 64 | case mps_message_type_gc_start(): { | 64 | case mps_message_type_gc_start(): { |
| 65 | printf("\nCollection started. Because:\n"); | 65 | printf("\nCollection started. Because:\n"); |
| 66 | printf("%s\n", mps_message_gc_start_why(arena, message)); | 66 | printf(" %s\n", mps_message_gc_start_why(arena, message)); |
| 67 | printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); | ||
| 67 | break; | 68 | break; |
| 68 | } | 69 | } |
| 69 | case mps_message_type_gc(): { | 70 | case mps_message_type_gc(): { |
| @@ -74,9 +75,10 @@ static void report(mps_arena_t arena) | |||
| 74 | not_condemned = mps_message_gc_not_condemned_size(arena, message); | 75 | not_condemned = mps_message_gc_not_condemned_size(arena, message); |
| 75 | 76 | ||
| 76 | printf("\nCollection %d finished:\n", ++nCollections); | 77 | printf("\nCollection %d finished:\n", ++nCollections); |
| 77 | printf("live %lu\n", (unsigned long)live); | 78 | printf(" live %lu\n", (unsigned long)live); |
| 78 | printf("condemned %lu\n", (unsigned long)condemned); | 79 | printf(" condemned %lu\n", (unsigned long)condemned); |
| 79 | printf("not_condemned %lu\n", (unsigned long)not_condemned); | 80 | printf(" not_condemned %lu\n", (unsigned long)not_condemned); |
| 81 | printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); | ||
| 80 | 82 | ||
| 81 | if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { | 83 | if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { |
| 82 | /* When condemned size is larger than could happen in a gen 2 | 84 | /* When condemned size is larger than could happen in a gen 2 |