[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apache::DProf missing some subroutines


On 5/11/07, John ORourke <suppressed> wrote:
Any idea why Apache::DProf would be failing to list some subroutines
that are definitely being called, in the tmon.out file?

Yes.  You're probably loading some of your code before initializing
the debugger.  Put something like this in httpd.conf before any
PerlModule or PerlRequire statements:
<Perl>
       require Apache::DB;
       Apache::DB->init;
</Perl>

Note that this is exactly the opposite of the advice you're getting
about Devel::Profiler.  DProf has to be loaded before any of the code
you want to profile, not after.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.