From 43a5972a3e85c6a5f5eed0cc5bb833d4ec9dfe24 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 18 Nov 2014 22:17:54 +0000 Subject: * gc.c (gc_record): add information for debug print. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ gc.c | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c6d863f7e..bb15c499d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 18 14:16:47 2014 Koichi Sasada + + * gc.c (gc_record): add information for debug print. + Wed Nov 19 04:49:07 2014 NAKAMURA Usaku * debug.c (set_debug_option): need the declaration. diff --git a/gc.c b/gc.c index 5a94103aa6..9c0dbeffcf 100644 --- a/gc.c +++ b/gc.c @@ -6008,19 +6008,21 @@ gc_record(rb_objspace_t *objspace, int direction, const char *event) gc_current_status_fill(objspace, current_gc_status); #if 1 /* [last mutator time] [gc time] [event] */ - fprintf(stderr, "%"PRItick"\t%"PRItick"\t%s\t[%s->%s]\n", + fprintf(stderr, "%"PRItick"\t%"PRItick"\t%s\t[%s->%s|%c]\n", enter_tick - last_exit_tick, exit_tick - enter_tick, event, - last_gc_status, current_gc_status); + last_gc_status, current_gc_status, + (objspace->profile.latest_gc_info & GPR_FLAG_MAJOR_MASK) ? '+' : '-'); last_exit_tick = exit_tick; #else /* [enter_tick] [gc time] [event] */ - fprintf(stderr, "%"PRItick"\t%"PRItick"\t%s\t[%s->%s]\n", + fprintf(stderr, "%"PRItick"\t%"PRItick"\t%s\t[%s->%s|%c]\n", enter_tick, exit_tick - enter_tick, event, - last_gc_status, current_gc_status); + last_gc_status, current_gc_status, + (objspace->profile.latest_gc_info & GPR_FLAG_MAJOR_MASK) ? '+' : '-'); #endif } } -- cgit v1.2.3