[cgiapp] profiling

Joshua Miller unrtst at gmail.com
Thu Nov 4 13:22:58 EDT 2010


On Thu, Nov 4, 2010 at 10:58 AM, Rhesa Rozendaal <perl at rhesa.com> wrote:
> 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.


There's also a cgiapp plugin that works with devpopup to do DBI
profiling. It won't help with generic profiling of the whole script,
but may be useful if you've got some DBI stuff in there  you'd like to
profile.

http://search.cpan.org/~unrtst/CGI-Application-Plugin-DBIProfile-0.07/

--
Josh I.


More information about the cgiapp mailing list