The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::LightProfile - A small, lightweight profiler for time and memory as Plack middleware

VERSION

version 0.002

SYNOPSIS

    use Plack::Builder;
    use Log::Any;
    my $app = sub { ... };
    builder {
        enable "LightProfile";
    };

DESCRIPTION

A little profiler for Plack applications. All data is sent out over Log::Any at info level. A lot of this information is available in Plack::Middleware::Debug, but this allows you to aggregate it over all child processes at once.

These items are logged as a single log line:

response time

How long did it take for the app to return a response. This may include the time for other middleware wrapped by this.

end memory

After generating the current response, the amount of memory used by the current process.

added memory

How much memory was leaked (added) to the base process making the current response.

SUPPORT

Repository

http://github.com/perldreamer/Plack-Middleware-LightProfile

Bug Reports

http://github.com/perldreamer/Plack-Middleware-LightProfile

DEPENDENCIES

  Log::Any
  Time::HiRes
  Process::SizeLimit::Core

AUTHOR

Colin Kuskie <colink_at_plainblack_dot_com>

LEGAL

This module is Copyright 2014 Plain Black Corporation. It is distributed under the same terms as Perl itself.