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

ruby-changes:30262

From: naruse <ko1@a...>
Date: Fri, 2 Aug 2013 00:04:24 +0900 (JST)
Subject: [ruby-changes:30262] naruse:r42314 (trunk): Show memory usage on NoMemoryError ref #8711

naruse	2013-08-02 00:04:13 +0900 (Fri, 02 Aug 2013)

  New Revision: 42314

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

  Log:
    Show memory usage on NoMemoryError ref #8711

  Modified files:
    trunk/test/runner.rb

Index: test/runner.rb
===================================================================
--- test/runner.rb	(revision 42313)
+++ test/runner.rb	(revision 42314)
@@ -30,5 +30,6 @@ begin https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L30
   exit Test::Unit::AutoRunner.run(true, src_testdir)
 rescue NoMemoryError
   system("cat /proc/meminfo") if File.exist?("/proc/meminfo")
+  system("ps x -opid,cmd,%mem,rss,size,vsz") if File.exist?("/bin/ps")
   raise
 end

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

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