Apache::SmallProf(3pm)

Apache::SmallProf3pm

Hook devel::smallprof into mod_perl

Usage

 <IfDefine PERLSMALLPROF>
    <Perl>
     use Apache::DB ();
     Apache::DB->init;
    </Perl>
    <Location />
     PerlFixupHandler Apache::SmallProf
    </Location>
 </IfDefine>

Overview

Devel::SmallProf is a line-by-line code profiler. Apache::SmallProf provides this profiler in the mod_perl environment. Profiles are written to $ServerRoot/logs/smallprof and unlike Devel::SmallProf the profile is split into several files based on package name.

The Devel::SmallProf documentation explains how to analyize the profiles, e.g.:

 % sort -nrk 2  logs/smallprof/CGI.pm.prof | more
         1 0.104736       629:     eval "package $pack; $$auto";
         2 0.002831       647:       eval "package $pack; $code";
         5 0.002002       259:    return $self->all_parameters unless @p;
         5 0.000867       258:    my($self,@p) = self_or_default(@_);
         ...

Releases

11 releases since Debian 3.0 (Woody); the text changed 9 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0–6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12

License

This module is distributed under the same terms as Perl itself.

Author

Devel::SmallProf - Ted Ashton Apache::SmallProf derived from Devel::SmallProf - Doug MacEachern

Currently maintained by Dirk Lindner <[email protected]>

From libapache-db-perl 0.18-2 in Debian 12 (Bookworm). Parsed by carta from the page's man source.