Re: Has anyone successfully used Devel::Profiler::Apache under modperl?

[prev] [thread] [next] [Date index for 2005/02/18]

From: Geoffrey Young
Subject: Re: Has anyone successfully used Devel::Profiler::Apache under modperl?
Date: 14:34 on 18 Feb 2005

Richard Chen wrote:
> Hi,
>             I have used Apache::DProf but find that it leads to bus errors on many requests.
> I found this Devel::Profiler::Apache which is supposed to be a drop-in replacement
> for Apache::DProf in such bus error cases. However, it does not seem to work right.
>  
>            First of all, specifying
>  
> PerlModule Devel::Profiler::Apache 
>  
> inside httpd.conf simply will not work. One has to do a 'use' inside startup.pl

yes.  in the Apache-Test setup below I made the following comments in
t/conf/extra.conf.in

  # PerlModule Devel::Profiler::Apache
  # will not work, since the profiler is intialized
  # in Devel::Profiler::Apache::import(), which is
  # left uncalled when loaded via PerlModule

>  
>            Most importantly, after the server process is shutdown and dprofpp
> is applied to the tmon.out file, it always complains about garbled profile. 
> The -F option for dprofpp does not help. So basically I cannot use any data
> inside the tmon.out file.

I don't see that with the below version, which is all I have.

>  
>           Has anyone successfully used Devel::Profiler::Apache?
>  
>           I am using Perl 5.8.3 and Modperl 1.29 on a solaris 9 server.

try the latest profiler version from sourceforge cvs

  http://sourceforge.net/projects/devel-profiler

you can get anonymous cvs access following these instructions

  http://sourceforge.net/cvs/?group_id=53745

the Apache-Test based test suite currently has one failure for me, but I
haven't touched that code in a while and CGI.pm has changed a bit since I
wrote it.  but in any case you can examine the stuff in t/conf to see how I
set it up so that it works properly.

HTH

--Geoff

(message missing)

Re: Has anyone successfully used Devel::Profiler::Apache under modperl?
Geoffrey Young 14:34 on 18 Feb 2005

Generated at 14:49 on 03 Mar 2005 by mariachi v0.52