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

Re: Apache::DProf missing some subroutines


Perrin Harkins wrote:
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>

Brilliant, that did the trick. I was using PerlModule and PerlLoadModule to load some stuff in during server init, and of course that was defining things before any children were initialised.

thanks for the various tips folks, I've got something which works now :)

John


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