edit the httpd config and add
PerlModule Devel::NYTProf::Apache
then restart apache
perform some requests (ideally, the same request a bunch of times)
then stop apache
there should be a bunch of files in /tmp, with names like nytprof.*.out.*
.
Delete the file whose owner is root. Note that the first *
should be the same number,
remember that as $FOO
.
Then run
nytprofmerge nytprof.$FOO.out.*
nytprofhtml -f nytprof-merged.out
this will produce a directory "nytprof/". Copy that somewhere and open its index.html in a browser.