Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Profiling/Benchmarking web applications.

by gmax (Abbot)
on Aug 24, 2004 at 21:21 UTC ( #385513=note: print w/replies, xml ) Need Help??


in reply to Profiling/Benchmarking web applications

Use DBI::ProfileDumper::Apache .

Quoting from the docs:

DBI::ProfileDumper::Apache - capture DBI profiling data from Apache/mod_perl

SYNOPSIS

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.prof.*

When you're ready to perform another profiling run, delete the old files

rm /usr/local/apache/logs/dbi.prof.*

and start again.

Additionally, if you wish to fine tune your profiling needs, see Speeding up the DBI for some examples on how to include profiling code (using DBI::Profile) in your application.

 _  _ _  _  
(_|| | |(_|><
 _|   

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385513]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2016-12-09 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (158 votes). Check out past polls.