<?xml version="1.0" encoding="windows-1252"?>
<node id="986281" title="Using Devel::NYTProf with CGI::Application" created="2012-08-08 09:52:34" updated="2012-08-08 09:52:34">
<type id="115">
perlquestion</type>
<author id="707939">
jvector</author>
<data>
<field name="doctext">
&lt;!-- Template:
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&amp;#91; &amp;#93;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;/blockquote&gt;
--&gt;
&lt;p&gt;Salutations,&lt;/p&gt;
&lt;p&gt;I am interested in profiling a web application built with CGI::Application, using Devel::NYTProf. &lt;/p&gt;

&lt;p&gt;The docs for NYTProf recommend running a Perl file directly from the command line; or, for profiling under Apache, putting a PerlModule line in httpd.conf. However, this latter method presupposes that one has mod_perl enabled which is not the case in my environment.&lt;/p&gt;

&lt;p&gt;I've tried, from the command line, running individual test scripts from the t/ directory but I would quite like to get a profile of the site whilst it's being used from a browser session. &lt;/p&gt;
&lt;P&gt;Is that a sensible/reasonable thing to be seeking, and if so can it be done?&lt;/P&gt;
</field>
</data>
</node>
