Plack::Middleware::LightProfile - A small, lightweight profiler for time and memory as Plack middleware
version 0.002
use Plack::Builder; use Log::Any; my $app = sub { ... }; builder { enable "LightProfile"; };
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.
info
These items are logged as a single log line:
How long did it take for the app to return a response. This may include the time for other middleware wrapped by this.
After generating the current response, the amount of memory used by the current process.
How much memory was leaked (added) to the base process making the current response.
http://github.com/perldreamer/Plack-Middleware-LightProfile
Log::Any Time::HiRes Process::SizeLimit::Core
Colin Kuskie <colink_at_plainblack_dot_com>
This module is Copyright 2014 Plain Black Corporation. It is distributed under the same terms as Perl itself.
To install Plack::Middleware::LightProfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::LightProfile
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::LightProfile
For more information on module installation, please visit the detailed CPAN module installation guide.