[cgiapp] profiling

William Bulley web at umich.edu
Thu Nov 4 11:29:57 EDT 2010


According to Rhesa Rozendaal <perl at rhesa.com> on Thu, 11/04/10 at 11:22:
> 
> Yep, that's the one. Outside of mod_perl, you'd use regular 
> Devel::NYTProf. How you'd pass the -d flag to the perl invocation likely 
> depends on your web server.
> 
> I'd like to point out that profiling CGI::Application apps is pretty 
> easy from the command line. Here's an example:
> 
> HTTP_HOST=www.example.com HTTP_WHATEVER=whatever perl -d:NYTProf 
> your_instance_script.cgi some=cgi variables=here
> 
> That should be all on one line, or wrap it in a script, or whatever.
> 
> Yet another approach would be doing what ::Apache does: add calls to 
> DB::enable_profile() and DB::_finish() at the appropriate place in your 
> code.

Thanks!  My server is Apache 2.2 without mod_perl BTW.

Not sure what DB::enable_profile() and DB::_finish() are, but I'm
not that far into this area of research yet.  Thanks again.

Regards,

web...

--
William Bulley                     Email: web at umich.edu

72 characters width template ----------------------------------------->|


More information about the cgiapp mailing list