[前][次][番号順一覧][スレッド一覧]

ruby-changes:17015

From: nari <ko1@a...>
Date: Mon, 16 Aug 2010 20:32:42 +0900 (JST)
Subject: [ruby-changes:17015] Ruby:r29013 (trunk): * gc.c (gc_profile_result): Index begins with 1.

nari	2010-08-16 20:31:58 +0900 (Mon, 16 Aug 2010)

  New Revision: 29013

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29013

  Log:
    * gc.c (gc_profile_result): Index begins with 1.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29012)
+++ ChangeLog	(revision 29013)
@@ -1,3 +1,7 @@
+Mon Aug 16 20:26:13 2010  Narihiro Nakamura  <narihiro@n...>
+
+	* gc.c (gc_profile_result): Index begins with 1.
+
 Mon Aug 16 20:21:17 2010  Narihiro Nakamura  <authornari@g...>
 
 	* gc.c (gc_profile_result): use size_t. based on patches from
Index: gc.c
===================================================================
--- gc.c	(revision 29012)
+++ gc.c	(revision 29013)
@@ -3275,7 +3275,7 @@
     record = gc_profile_record_get();
     if (objspace->profile.run && objspace->profile.count) {
 	result = rb_sprintf("GC %d invokes.\n", NUM2INT(gc_count(0)));
-        index = 0;
+        index = 1;
 	rb_str_cat2(result, "Index    Invoke Time(sec)       Use Size(byte)     Total Size(byte)         Total Object                    GC Time(ms)\n");
 	for (i = 0; i < (int)RARRAY_LEN(record); i++) {
 	    VALUE r = RARRAY_PTR(record)[i];
@@ -3296,7 +3296,7 @@
 	rb_str_cat2(result, "\n\n");
 	rb_str_cat2(result, "More detail.\n");
 	rb_str_cat2(result, "Index Allocate Increase    Allocate Limit  Use Slot  Have Finalize             Mark Time(ms)            Sweep Time(ms)\n");
-        index = 0;
+        index = 1;
 	for (i = 0; i < (int)RARRAY_LEN(record); i++) {
 	    VALUE r = RARRAY_PTR(record)[i];
 	    rb_str_catf(result, "%5d %17"PRIuSIZE" %17"PRIuSIZE" %9"PRIuSIZE" %14s %25.20f %25.20f\n",

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]