From c9effa8ce0d3f423abcc98e1b3d39c736cb0947b Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 7 Dec 2005 15:46:49 +0000 Subject: * eval.c (call_trace_func): klass parameter should be a class/module that defines calling method. [ruby-talk:169307] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/profiler.rb b/lib/profiler.rb index 9762fa118..1067106be 100644 --- a/lib/profiler.rb +++ b/lib/profiler.rb @@ -34,7 +34,7 @@ module_function total = Process.times[0] - @@start if total == 0 then total = 0.01 end data = @@map.values - data.sort!{|a,b| b[2] <=> a[2]} + data = data.sort_by{|x| x[2]} sum = 0 f.printf " %% cumulative self self total\n" f.printf " time seconds seconds calls ms/call ms/call name\n" -- cgit