ruby-changes:7604
From: nari <ko1@a...>
Date: Thu, 4 Sep 2008 19:47:53 +0900 (JST)
Subject: [ruby-changes:7604] Ruby:r19125 (trunk): * gc.c (gc_profile_record_get): to static function.
nari 2008-09-04 19:47:39 +0900 (Thu, 04 Sep 2008) New Revision: 19125 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19125 Log: * gc.c (gc_profile_record_get): to static function. (gc_profile_result): ditto. (gc_profile_report): ditto. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19124) +++ ChangeLog (revision 19125) @@ -1,3 +1,9 @@ +Thu Sep 4 19:40:50 2008 Narihiro Nakamura <authorNari@g...> + + * gc.c (gc_profile_record_get): to static function. + (gc_profile_result): ditto. + (gc_profile_report): ditto. + Thu Sep 4 19:20:24 2008 Tanaka Akira <akr@f...> * include/ruby/io.h (rb_io_enc_t): rename flags to ecflags. Index: gc.c =================================================================== --- gc.c (revision 19124) +++ gc.c (revision 19125) @@ -2682,7 +2682,7 @@ } #endif -VALUE +static VALUE gc_profile_record_get(void) { VALUE prof; @@ -2729,14 +2729,15 @@ * 1 0.012 159240 212940 10647 0.00000000000001530000 */ -VALUE +static VALUE gc_profile_result(void) { rb_objspace_t *objspace = &rb_objspace; - VALUE record = gc_profile_record_get(); + VALUE record; VALUE result; int i; + record = gc_profile_record_get(); if (objspace->profile.run && objspace->profile.count) { result = rb_sprintf("GC %d invokes.\n", NUM2INT(gc_count(0))); rb_str_cat2(result, "Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n"); @@ -2780,7 +2781,7 @@ * */ -VALUE +static VALUE gc_profile_report(int argc, VALUE *argv, VALUE self) { VALUE out; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/