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


_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to