summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-31 16:09:10 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-31 16:09:10 +0000
commitcecbcc420e3e49b1b73d54b66a54c397d6799685 (patch)
treec17f7d9be0a544b7a2b9fb6be73a0ce343629a48
parent128d3e781741456556809ccad86d4a730af0fcbc (diff)
* benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--benchmark/gc/gcbench.rb7
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 33bcf27650..009b85a078 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Nov 1 01:08:33 2013 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.
+
Thu Oct 31 21:48:31 2013 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/parsers/streamparser.rb: Add dependency file require.
diff --git a/benchmark/gc/gcbench.rb b/benchmark/gc/gcbench.rb
index 722a69f0ed..a7aef48986 100644
--- a/benchmark/gc/gcbench.rb
+++ b/benchmark/gc/gcbench.rb
@@ -25,6 +25,13 @@ puts script
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)"