Using NYTProf with Mason under mod_perl
I'm trying to profile a web application written on top of HTML::Mason, I managed to set the profiler but it doesn't seem to pick-up the code inside the components. Is there a way to profile Mason applications using NYTProf?
I realize you're deploying this app under mod_perl, but one way to handle this would be to deploy under Plack and then use Plack::Middleware::Debug::Profiler::NYTProf. I haven't done this for Mason apps, but it was almost trivial to get some CGI::Application code running under Plack. Once you are able to deploy under Plack you get access to lots of great middleware components for debugging. If you can do this with little or no changes to the app itself, you could still continue to deploy to production under mod_perl but use Plack in development for stuff like NYTProf.
EDIT: I see now that I should have pointed you at Devel::NYTProf::Apache.