【Rails】プロファイリングツールを使おうとしたが‥

以下まだできていないので、そういうものがあるのだ程度の参考までに…
どこまで進んだか、自分用メモです

ruby-prof

http://d.hatena.ne.jp/mirakui/20100919/rubyprof
そもそも、参考にさせていただいて↑をやりたかったのです
がしかし。
できない…???

windowsさんが原因なのかどうなのか…(´・ω・`)

他の参考サイト
http://blog.s21g.com/articles/639

、Gemがインストールされたディレクトリの下にあります。 環境によって場所は変わりますが、例えば/usr/local/lib/ruby/gems/1.8/gems/ruby-prof-0.6.0/rails_plugin/ruby-profなどの場所にあります。

これをvendor/plugins/ruby-profにコピーすれば設定は完了です。

…。そもそも、ruby-prof/rails_pluginというようなディレクトリがありません。
READMEを読むと、windows環境の場合は、インストールするバージョンやら色々指定されていますが‥
指定されたバージョンインストール後、書かれている、やり方(ディレクトリを指定の場所にコピー等)をしても、logが有りません…。
他のサイトによると、log/callgrind.outと書かれていましたが存在さえせず‥(´・ω・`)

さらに他の参考サイト
http://gihyo.jp/dev/feature/01/rails2/0004

うーんいまいちうまくいきません

New Relic RPM

https://rpm.newrelic.com/v2/accounts/25463/applications

やり方は色々あるようですが、おそらく
1.gemかgitでnewrelic_rpmというライブラリを入れる
2. newrelic.ymlをconfigに上書き(私の環境ではそもそもない…)
3.rails再起動

以下やろうとしたのですが出来なかったメモです

>script/rails plugi
n install http://newrelic.rubyforge.org/svn/newrelic_rpm
Script started, file is /rails
sh-3.2$

よく分からない…
cdでディレクトリ移動できたり、exitで終了できましたが…
よく分からないので、gemで入れます

# gem install newrelic_rpm

PLEASE NOTE:

Developer Mode is now a Rack middleware.

RPM Developer Mode is no longer available in Rails 2.1 and earlier.
However, starting in version 2.12 you can use Developer Mode in any
Rack based framework, in addition to Rails.  To install developer mode
in a non-Rails application, just add NewRelic::Rack::DeveloperMode to
your middleware stack.

If you are using JRuby, we recommend using at least version 1.4 or
later because of issues with the implementation of the timeout library.

Refer to the README.md file for more information.

Please see http://support.newrelic.com/faqs/docs/ruby-agent-release-notes
for a complete description of the features and enhancements available
in version 2.13 of the Ruby Agent.

For details on this specific release, refer to the CHANGELOG file.

Notice: Developer Mode now supports only Rails 2.3+ - refer to README
for instructions for previous versions

Successfully installed newrelic_rpm-2.13.2
1 gem installed
Installing ri documentation for newrelic_rpm-2.13.2...
Installing RDoc documentation for newrelic_rpm-2.13.2...

うーん…
入ったらしい

再起動後…
https://rpm.newrelic.com/v2/accounts/25463/applications
にアクセス。
何も変化なし。
そもそもアドレスが違うのではないかとかも考えましたが、これ以外に特に見つからない…


(´・ω・`)


kabutterの軽量化のために、全体のプロファイリングを行ってみたかったのですがあばばばばという1日でした…
うーん
この続きは後日