diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-14 22:58:42 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-14 22:58:42 +0000 |
| commit | 141fd2f1468e323002916890544f1a86d7aa8443 (patch) | |
| tree | e5d31617c1b3ce2dec0c08b446df1091bef723db /lib/profile.rb | |
| parent | 03958af977bde7651a74d858594a90db82ab362a (diff) | |
| download | ruby-141fd2f1468e323002916890544f1a86d7aa8443.tar.gz ruby-141fd2f1468e323002916890544f1a86d7aa8443.tar.xz ruby-141fd2f1468e323002916890544f1a86d7aa8443.zip | |
* profile.rb: illegal use of Array#sort!. replaced it with non-bang
method. [ruby-dev:18792]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/profile.rb')
| -rw-r--r-- | lib/profile.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/profile.rb b/lib/profile.rb index 6f772ee6d..23840c4e1 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" |
