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

ruby-changes:29436

From: ko1 <ko1@a...>
Date: Thu, 20 Jun 2013 18:00:52 +0900 (JST)
Subject: [ruby-changes:29436] ko1:r41488 (trunk): * benchmark/gc/gcbench.rb: stop GC::Profiler before output results.

ko1	2013-06-20 18:00:41 +0900 (Thu, 20 Jun 2013)

  New Revision: 41488

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

  Log:
    * benchmark/gc/gcbench.rb: stop GC::Profiler before output results.
      Generating GC::Profiler result under profiling causes infinite loop.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/gc/gcbench.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41487)
+++ ChangeLog	(revision 41488)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 20 17:59:08 2013  Koichi Sasada  <ko1@a...>
+
+	* benchmark/gc/gcbench.rb: stop GC::Profiler before output results.
+	  Generating GC::Profiler result under profiling causes infinite loop.
+
 Thu Jun 20 17:24:24 2013  Koichi Sasada  <ko1@a...>
 
 	* benchmark/gc/gcbench.rb: don't use __dir__ to make compatible
Index: benchmark/gc/gcbench.rb
===================================================================
--- benchmark/gc/gcbench.rb	(revision 41487)
+++ benchmark/gc/gcbench.rb	(revision 41488)
@@ -12,6 +12,7 @@ GC::Profiler.enable https://github.com/ruby/ruby/blob/trunk/benchmark/gc/gcbench.rb#L12
 tms = Benchmark.measure{|x|
   load script
 }
+GC::Profiler.disable
 GC::Profiler.report
 pp GC.stat
 

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

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