1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

gc.c: revert r40898

* gc.c (gc_profile_dump_on): revert r40898.  ok to show the record
  accumulating while lazy_sweep().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-23 08:22:05 +00:00
parent 95170c704c
commit 699e06a884
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
Thu May 23 16:58:01 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu May 23 17:21:22 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (gc_profile_dump_on): do not dump the last record, for some * gc.c (gc_profile_dump_on): revert r40898. ok to show the record
reason. accumulating while lazy_sweep().
Wed May 22 16:50:18 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed May 22 16:50:18 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>

1
gc.c
View file

@ -5002,7 +5002,6 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE))
size_t i; size_t i;
const gc_profile_record *record; const gc_profile_record *record;
--count; /* do not dump the last record */
append(out, rb_sprintf("GC %"PRIuSIZE" invokes.\n", objspace->count)); append(out, rb_sprintf("GC %"PRIuSIZE" invokes.\n", objspace->count));
append(out, rb_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n")); append(out, rb_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n"));