diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/profiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profiler.rb b/lib/profiler.rb index 9762fa1181..1067106be4 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" |