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

ruby-changes:31416

From: ko1 <ko1@a...>
Date: Fri, 1 Nov 2013 01:09:16 +0900 (JST)
Subject: [ruby-changes:31416] ko1:r43495 (trunk): * benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.

ko1	2013-11-01 01:09:10 +0900 (Fri, 01 Nov 2013)

  New Revision: 43495

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

  Log:
    * benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/gc/gcbench.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43494)
+++ ChangeLog	(revision 43495)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov  1 01:08:33 2013  Koichi Sasada  <ko1@a...>
+
+	* benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.
+
 Thu Oct 31 21:48:31 2013  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/parsers/streamparser.rb: Add dependency file require.
Index: benchmark/gc/gcbench.rb
===================================================================
--- benchmark/gc/gcbench.rb	(revision 43494)
+++ benchmark/gc/gcbench.rb	(revision 43495)
@@ -25,6 +25,13 @@ puts script https://github.com/ruby/ruby/blob/trunk/benchmark/gc/gcbench.rb#L25
 puts Benchmark::CAPTION
 puts tms
 puts "GC total time (sec): #{gc_time}"
+
+# show High-Water Mark on Linux
+if File.exist?('/proc/self/status') && /VmHWM:\s*(\d+.+)/ =~ File.read('/proc/self/status')
+  puts
+  puts "VmHWM: #{$1.chomp}"
+end
+
 puts
 puts "Summary of #{name} on #{desc}\t#{tms.real}\t#{gc_time}\t#{GC.count}"
 puts "         (real time in sec, GC time in sec, GC count)"

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

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