mod_perl 下のプログラムちゃんたちの遅い処理を丸裸にしちゃうモジュール。
CPAN : Devel::NYTProf::Apache
書き方は、Apache の設定ファイルに
PerlPassEnv NYTPROF PerlModule Devel::NYTProf::Apache
を追記。
それと、
MaxClients 1
も追記。
こうすることで、nytprofhtmlでの解析が出来ます。
nytprofhtml -f /tmp/nytprof.xxx.out.yyy
xxxが親プロセスの
ID、yyyが子プロセスの
ID。
そして、最後に結果の表示
less /tmp/nytprof/index.html