Re: [Templates] Performance on my new site is a drag

[prev] [thread] [next] [Date index for 2004/10/26]

From: Geoffrey Young
Subject: Re: [Templates] Performance on my new site is a drag
Date: 02:18 on 26 Oct 2004

Perrin Harkins wrote:
> On Mon, 2004-10-25 at 15:45, Andy Lester wrote:
> 
>>On Mon, Oct 25, 2004 at 03:18:43PM -0400, Perrin Harkins (perrin@xxxx.xxx) wrote:
>>
>>>If you'd care to expand on that, there might be some people on here who
>>>can help you with it.  One thing that often causes problems is that you
>>>have to initialize the debugger before you compile anything in your
>>>startup.pl or you won't get the symbols put in.
>>
>>We don't use a startup.pl.  We use PerlModule in the httpd.conf
> 
> 
> I recommend using startup.pl instead

the issues are similar (but not identical) for Devel::Profiler as those
perrin outlined for Apache::DProf - you need to use a startup.pl or <Perl>
sections because D::P relies on import() which isn't called via PerlModule.

also, with D::P you need to pre-load Registry scripts if you're using them.
 so a sample startup.pl would look like this:

  use Devel::Profiler::Apache;


  # Registry scripts must be pre-loaded in order
  # to be seen by the profiler
  use Apache::RegistryLoader;
  Apache::RegistryLoader->new->handler('perl-bin/foo.pl');

the latest (unreleased) Devel::Profiler on sourceforge has integrated
Apache-Test based tests, so you can steal the configurations from
t/conf/extra.conf.in and t/conf/modperl_extra.pl to get you started.

HTH

--Geoff

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

Re: [Templates] Performance on my new site is a drag
merlyn (Randal L. Schwartz) 22:32 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 18:43 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 19:18 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 20:46 on 25 Oct 2004

Re: [Templates] Performance on my new site is a drag
Geoffrey Young 02:18 on 26 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 14:40 on 29 Oct 2004

Re: [Templates] Performance on my new site is a drag
Perrin Harkins 15:07 on 29 Oct 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52