From 3491b8a2cae670c020c83a9b8ffb73a75c080e3a Mon Sep 17 00:00:00 2001 From: nahi Date: Thu, 14 Nov 2002 22:58:42 +0000 Subject: * profile.rb: illegal use of Array#sort!. replaced it with non-bang method. [ruby-dev:18792] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/profile.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/profile.rb') diff --git a/lib/profile.rb b/lib/profile.rb index 6f772ee6d9..23840c4e19 100644 --- a/lib/profile.rb +++ b/lib/profile.rb @@ -41,7 +41,8 @@ module Profiler__ MAP["#toplevel"][1] = total # f = open("./rmon.out", "w") f = STDERR - data = MAP.values.sort!{|a,b| b[2] <=> a[2]} + data = MAP.values + data.sort!{|a,b| b[2] <=> a[2]} sum = 0 f.printf " %% cumulative self self total\n" f.printf " time seconds seconds calls ms/call ms/call name\n" -- cgit v1.2.3