[Catalyst] Re: Catalyst vs Rails vs Django Cook off

Perrin Harkins perrin at elem.com
Wed Jan 17 18:43:56 GMT 2007


On Wed, 2007-01-17 at 19:24 +0100, Sébastien Wagener wrote:
> On my production server, database requests are usually quite fast, so
> most of the time is spent in perl code, and here are the first lines of
> a "dprofpp -r" on my local 2.8 Ghz Laptop (production database,
> Algorithm::C3 0.06, mod_perl deployment, as I do not want to use FastCGI
> and dprofpp -F), for a repeated lost-password/login/change
> password/logout cycle (totally about 1000 requests)

One tip for profiling with mod_perl:
If you preload your modules in httpd.conf (or a startup.pl called from
it), make sure you initialize the debugger before you load them or else
they will not show up in DProf output.

For example, put this before any PerlModule or PerlRequire statements:
<Perl>
    require Apache::DB;
    Apache::DB->init;
</Perl>

- Perrin




More information about the Catalyst mailing list