Question

Is there a way to get this functionality under mod_perl2?

And can it be triggered via web requests as opposed to the command line? Or do I need to fake whatever $ENV variables and query strings and cookies that my script requires and use the command line somehow?

Google and CPAN searches all seem to point to things that either don't even support mod_perl to begin with, or do, but are old and don't mention mod_perl2.

Was it helpful?

Solution 3

There aren't any that fit the criteria.

OTHER TIPS

Assuming you want to profile your perl code, and not the server itself, the profilers generally do not care if it's mod_perl or mod_perl2, the major difference is in the apache API modules and what you can get apache to do for you using perl.

Take a look at Devel::NYTProf, it's relatively new, actively maintained and improved and provides some very nice profiling features.

Slightly different tactic here, but take a look at Apache2::ASP.

You can use Devel::Cover and Devel::NYTProf for code-coverage and code-profiling.

Example: code-coverage testing with Apache2::ASP

Example: code-profiling wih Apache2::ASP

Bonus - you can perform unit testing on your web application itself.

Disclaimer: I wrote Apache2::ASP.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top