[cgiapp] profiling

Rhesa Rozendaal perl at rhesa.com
Thu Nov 4 10:58:10 EDT 2010


On 11/04/2010 03:54 PM, William Bulley wrote:
> In year's gone by, one could profile the execution performance of
> a C program by instrumenting it at compile time for the purposes of
> using prof(1) or gprof(1) subsequently to get run time statistics.
>
> I have found DProf.pm and DProfPP.pm on CPAN (thanks Ron!) which it
> seems is a comparable solution for Perl scripts at the command line.
>
> What I am wondering about is this: is there a way to profile a CGI
> Application script given that doing same from the command line is
> problematical, if not impossible?

These days you should be using Devel::NYTProf. It has an Apache plugin 
that makes profiling web requests a breeze.

rhesa


More information about the cgiapp mailing list