From cecbcc420e3e49b1b73d54b66a54c397d6799685 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 31 Oct 2013 16:09:10 +0000 Subject: * 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 --- benchmark/gc/gcbench.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'benchmark') 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)" -- cgit v1.2.3