in reply to Apache::DProf works under mod_perl, but only show one method called (APR::Pool)

Sounds like you're loading your code in startup before you load the debugger. Try putting this in httpd.conf before any other perl stuff:
<Perl> use APR::Pool (); use Apache::DB (); Apache::DB->init(); </Perl>
  • Comment on Re: Apache::DProf works under mod_perl, but only show one method called (APR::Pool)
  • Download Code

Replies are listed 'Best First'.
Re^2: Apache::DProf works under mod_perl, but only show one method called (APR::Pool)
by robins (Acolyte) on Jun 25, 2007 at 08:33 UTC

    This did not help in any way. My files was just as empty.

    As I mentioned to Clint the worker (threaded) MPM was the culprit.

    On a sidenote: Should this be filed as a bug on Apache::DProf, the fact that it doesn't work in a threaded environment?

      Sorry, it didn't occur to me that you might be using threads on a non-Windows platform. You may want to reconsider that. The prefork model has better performance and uses a lot less memory on Linux than the threaded one.
      Should this be filed as a bug on Apache::DProf
      I would say yes. There is nothing in the docs or open bugs for either Apache::DProf or Devel::DProf which indicates that it shouldn't work with threads.

      Clint