summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 81ac411403..7fa85ae0ce 100644
--- a/gc.c
+++ b/gc.c
@@ -5002,6 +5002,7 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE))
size_t i;
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_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n"));