NAME

DashProfiler::Apache - Hook DashProfiler into Apache mod_perl (v1 or v2)

SYNOPSIS

XXX NOT IMPLEMENTED YET - SEE BELOW

To hook DashProfiler into Apache you can just add this line to httpd.conf:

PerlModule DashProfiler::Apache;

you'll need to also define at least one profile. An easy way of doing that is to use DashProfiler::Auto to get a predefined profile called 'auto':

PerlModule DashProfiler::Apache;
PerlModule DashProfiler::Auto;

Or you can define your own, like this:

    PerlModule DashProfiler::Apache;
    <Perl>
	DashProfile->add_profile( foo => { ... } );
    </Perl>

DESCRIPTION

XXX NOT IMPLEMENTED YET

For now you can use DashProfiler with Apache by adding these lines into your httpd.conf:

PerlModule DashProfiler
PerlChildInitHandler       DashProfiler::reset_all_profiles
PerlPostReadRequestHandler DashProfiler::start_sample_period_all_profiles
PerlCleanupHandler         DashProfiler::end_sample_period_all_profiles
PerlChildExitHandler       DashProfiler::flush_all_profiles

Simple!

The aim of the module is to a) simplify it even further, and b) do some magic to force start_sample_period_all_profiles to be the first PerlPostReadRequestHandler called, and end_sample_period_all_profiles to be the last PerlCleanupHandler called.