in reply to Re^2: Profiling under mod_perl
in thread Profiling under mod_perl

Put this in your httpd.conf before anything else that loads a perl module:
<Perl> require Apache::DB; Apache::DB->init; </Perl>

Replies are listed 'Best First'.
Re^4: Profiling under mod_perl
by aufflick (Deacon) on Feb 22, 2005 at 00:17 UTC
    Hmm - it seems like a good suggestion, since that's how you initialise running apache through the perl debugger (plus you add PerlFixupHandler Apache::DB of course...) and the profiling code uses the same debugger hooks.

    But when I do that combined with PerlModule Apache::DProf Apache actually exits (with no error) on the first request...

      You are probably getting segfaults. Devel::DProf is notorious for that.

      You would probably get better help if you post the problem, including details of your setup as described in the "reporting bugs" section of the website, to the mod_perl mailing list.

        Good idea about the mod_perl mailing list. I would have figured a segfault (I am all to familiar with the frailty of DProf), but Devel::Profiler::Apache is doing the same thing, and not a core file to be found anywhere.

        I genuinely think it is doing nothing... but I will head out from the monastry (hopefully with some nice beverage that monastries were famous for in the old days) and trek over to the mod_perl mailing list...