mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
4a447965b5
commit
43a5972a3e
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Nov 18 14:16:47 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (gc_record): add information for debug print.
|
||||
|
||||
Wed Nov 19 04:49:07 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* debug.c (set_debug_option): need the declaration.
|
||||
|
|
10
gc.c
10
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue