1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/profiler.rb (Profiler__#print_profile): sort in the descending

order of cumulative time.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-09 02:13:41 +00:00
parent 8dfc2f81c0
commit 71b1673229
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 9 11:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/profiler.rb (Profiler__#print_profile): sort in the descending
order of cumulative time.
Wed Jul 9 11:11:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (struct glob_args, rb_glob_caller, rb_glob2, push_pattern),

View file

@ -34,7 +34,7 @@ module_function
total = Process.times[0] - @@start
if total == 0 then total = 0.01 end
data = @@map.values
data = data.sort_by{|x| x[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"