зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
c0e98a1384
Коммит
3491b8a2ca
|
@ -6,6 +6,9 @@ Fri Nov 15 07:40:08 2002 NAKAMURA Hiroshi <nakahiro@sarion.co.jp>
|
|||
* ostruct.rb: ditto. fix a bug in inspect which called String#+ with
|
||||
Symbol. [ruby-dev:18788]
|
||||
|
||||
* profile.rb: illegal use of Array#sort!. replaced it with non-bang
|
||||
method. [ruby-dev:18792]
|
||||
|
||||
Thu Nov 14 22:40:29 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* configure.in (LIBRUBY_A): append -static. [ruby-dev:18689]
|
||||
|
|
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче