Also see DBI::ProfileDumper::Apache
Here's the synopsis from the manual:
Add this line to your httpd.conf:
PerlSetEnv DBI_PROFILE DBI::ProfileDumper::Apache
Then restart your server. Access the code you wish to test using a web browser, then shutdown your server. This will create a set of dbi.prof.* files in your Apache log directory. Get a profiling report with dbiprof:
dbiprof /usr/local/apache/logs/dbi
When you're ready to perform another profiling run, delete the old files
rm /usr/local/apache/logs/dbi
and start again.
Main Topics
Browse All Topics





by: kanduraPosted on 2004-09-08 at 03:50:05ID: 12004898
DBI can generate debugging information itself:
gi-bin/wik i/index.cg i?SeeAllSQ L)
set
DBI->trace(2 => "/tmp/logfile");
somewhere near the top of your script.
Or set the environment variable
DBI_PROFILE=2
See manuals for DBI::Profile and DBI::Trace.
(Found this at http://www.class-dbi.com/c