2005-03-22 (Tue)
_ [Ruby] ruby-prof-0.1
Ruby用のプロファイラをリリースしました。 以下のいずれかが必要です。
- ruby 1.9.0 (2005-03-17) 以降
- ruby 1.8.2 (2005-03-22) 以降
使い方はprofile.rbとほとんど同じ。
$ ruby-cvs_1_8 -v -runprof fib.rb ruby 1.8.2 (2005-03-22) [i686-linux] use CPU clock counter for profiling 6765 %% cumulative self self total time seconds seconds calls ms/call ms/call name 90.84 0.074 0.074 1 73.94 81.39 #toplevel 3.66 0.077 0.003 21890 0.00 0.00 Fixnum#- 3.61 0.080 0.003 21891 0.00 0.00 Fixnum#< 1.73 0.081 0.001 10945 0.00 0.00 Fixnum#+ 0.12 0.081 0.000 2 0.05 0.06 IO#write 0.01 0.081 0.000 1 0.01 0.01 Fixnum#to_s 0.01 0.081 0.000 1 0.01 0.12 Kernel.print 0.00 0.081 0.000 1 0.00 0.00 Module#method_added
profile.rbと比べるとかなり高速になっていると思います、 と思ったら結果がおかしいですね...Ruby本体の修正にバグがありました、すみません。set_trace_funcを使う場合は問題なかったのでテストが通ってました:(
先ほど修正をcommitしたので、今のruby_1_8ブランチの先端では以下のように正しい結果が返ると思います。
$ ruby-cvs_1_8 -runprof ~/ruby/fib.rb 6765 %% cumulative self self total time seconds seconds calls ms/call ms/call name 81.55 0.037 0.037 21891 0.00 0.03 Object#fib 7.73 0.041 0.004 21890 0.00 0.00 Fixnum#- 6.94 0.044 0.003 21891 0.00 0.00 Fixnum#< 3.24 0.045 0.001 10945 0.00 0.00 Fixnum#+ 0.26 0.045 0.000 1 0.12 45.44 #toplevel 0.22 0.045 0.000 2 0.05 0.06 IO#write 0.03 0.045 0.000 1 0.01 0.12 Kernel.print 0.02 0.045 0.000 1 0.01 0.01 Fixnum#to_s 0.00 0.045 0.000 1 0.00 0.00 Module#method_added
[ツッコミを入れる]
[TrackBack URL: http://shugo.net/jit/tb.rb/20050322]
本日のリンク元
- http://eto.com/d/RubyProf.html ×135
- http://bloger.x0.com/result/パワプロ14 コード /パワプロ14 コード... ×42
- http://press.eek.jp/result/パワプロ14/パワプロ14 コード ×40
- http://blog.chew.jp/result/softbank vodafone/softb... ×40
- http://blog.hacklife.net/archives/17081203.html ×38
- http://press.eek.jp/result/パワプロ14/ ×38
- http://paper.jeez.jp/result/パワプロ14/パワプロ14 コード ×29
- http://bloger.x0.com/result/パワプロ14/パワプロ14 コード ×20
- http://bloger.x0.com/result/パワプロ14/パワプロ14 パワプロ14 コ... ×19
- http://press.eek.jp/result/パワプロ14/パワプロ14 選手パスワード ×16
- http://bloger.x0.com/result/パワプロ14/パワプロ14 コード ×15
- http://bloger.x0.com/result/パワプロ/パワプロ パワプロ14 ×13
- http://blog.hacklife.net/archives/2005-03.html ×12
- http://www.programmers-paradise.com/tdiary/ ×11
- http://press.eek.jp/result/パワプロ14/パワプロ14 パワプロ14 コー... ×10
- http://bloger.x0.com/result/パワプロ14/パワプロ14 選手パスワード ×7
- http://press.eek.jp/result/パワプロ/パワプロ パスワード ×5
- http://bloger.x0.com/result/パワプロ14/パワプロ14 パワプロ14 パ... ×5
- http://press.eek.jp/result/パワプロ コード/パワプロ コード ×5
- http://keyword.dig4it.net/word/パワプロ14 選手パスワード.html... ×4
- http://bloger.x0.com/result/now/now 美容院 ×4
- http://gimon.180r.com/result/パワプロ14/パワプロ14 選手パスワード... ×4
- http://www.tyumoku.info/t-83p-83-8F-83v-83-8D14-20... ×4
- http://www.programmers-paradise.com/tdiary/?date=2... ×4
- http://bloger.x0.com/result/パワプロ14 コード/パワプロ14 コード ×4
- http://search.live.com/results.aspx?q=result ×4
- http://blog.livedoor.jp/zep716/archives/17081203.h... ×3
- http://blog.livedoor.jp/zep716/archives/cat_638071... ×3
- http://blog.chew.jp/result/softbank v…/softbank v…... ×3
- http://blog.livedoor.jp/zep716/ ×3
- http://mixi.jp/view_diary.pl?url=http://shugo.net/... ×3
- http://www.fsearch.groupsite.jp/search.aspx/パスワード/... ×3
- http://bloger.x0.com/result/パワプロ/パワプロ コード ×3
- http://press.eek.jp/result/パワプロ14/パワプロ14 選手 ×3
- http://gimon.180r.com/result/パワプロ12/パワプロ12 選手パスワード... ×2
- http://wordtantei.com/result/パワプロ14/パワプロ14 コード ×2
- http://syatc.com/cgi/bbs.cgi ×2
- http://blog.chew.jp/result/softbank/softbank おかしい ×2
- http://search.live.com/results.aspx?q=result&form=... ×2
- http://search.live.com/results.aspx?q=fixnum&mrt=e... ×2
- http://paper.jeez.jp/result/パワプロ14/パワプロ14 バグ ×2
- http://bloger.x0.com/result/blog-search/パワプロ14 ×2
- http://wordtantei.com/result/パワプロ14/パワプロ14 選手パスワード... ×1
- http://209.85.175.104/search?q=cache:UpOn9DvmLWQJ:... ×1
- http://blog.chew.jp/result/パワプロ/パワプロ パワプロ14 ×1
- http://www.bing.com/search?q=result ×1
- http://www.mooter.co.jp/moot/?keywords=パワプロ14 コード&... ×1
- http://www.bing.com/spresults.aspx?q=MS-SQL 高速化&fd... ×1
- http://looseend.ddo.jp/blog/9 ×1
- http://search.live.com/results.aspx?q=ms sql 高速化&s... ×1
- http://bloger.x0.com/result/パワプロ/パワプロ 14 ×1
- http://websearch.asahi.com/.cgi/websearch/websearc... ×1
- http://search.live.com/results.aspx?srch=105&FORM=... ×1
- http://wordtantei.com/result/パワプロ14/パワプロ14 パワプロ14 ... ×1
- http://gimon.180r.com/result/パワプロ14/パワプロ14 選手 ×1
- http://search.live.com/spresults.aspx?q=sql 高速化&fo... ×1
- http://press.eek.jp/result/sql/sql plus ×1
- http://sbs.mobile.yahoo.co.jp/union/search?fr=m_to... ×1
- http://mput.dip.jp/mput/?date=20040129 ×1
- http://blog.chew.jp/result/now/now 美容院 ×1
- http://jig108.mobile.ogk.yahoo.co.jp/fweb/0213aXf2... ×1
- http://mobile.180r.com/word-plus/word/パワプロ14/パワプロ1... ×1
- http://znz.s1.xrea.com/t/ ×1
- http://sbs.mobile.yahoo.co.jp/union/search?p=V FIB... ×1
- http://sbs.mobile.yahoo.co.jp/p/sbs/mobilesite/sea... ×1
- http://blog.hacklife.net/archives/cat_638071.html ×1
- http://jig122.mobile.ogk.yahoo.co.jp/fweb/0107OaV8... ×1
- http://1470.net/mm/ ×1
- http://gimon.180r.com/result/パワプロ14/パワプロ14 コード ×1
- http://search.live.com/results.aspx?q=result&mrt=e... ×1
- http://www.gtdssss.dev-asp.net/search.aspx/選手/パスワー... ×1
- http://goosh.org/ ×1
- http://blog.drecom.jp/FFF/archive/18 ×1
- http://www.rubyist.net/~matz/20050405.html ×1
- http://www.1470.net/mm/related?memo=104372 ×1
- http://mobile.180r.com/word-plus/word/パワプロ14/パワプロ1... ×1
- http://press.eek.jp/result/パワプロ14/パワプロ14 選手 ×1
- http://gimon.180r.com/result/パワプロ/パワプロ4 ×1
- http://search.live.com/results.aspx?q=sql 高速化&mkt=... ×1
- http://press.eek.jp/result/パワプロ14/パワプロ14 パスワード ×1
