Plack::Middleware::Profiler::KYTProf - Profile psgi app with KYTProf
builder { enable "Plack::Middleware::Profiler::KYTProf"; $app; };
Plack::Middleware::Profiler::KYTProf is the PSGI app profiler. Use enable_profile_if, logger and threshold option in production environment.
Use profiles if you need application specific profiling. See the sample profile Plack::Middleware::Profiler::KYTProf::Profile::TemplateEngine.
NOTE that some options expect a code reference. Maybe, you feel it is complicated. However that will enable to control them programmably. It is more useful to your apps.
default
sub { 1 }
Use code reference if you want to enable profiling programmably This option is optional.
You can add profiling target modules if you use this option.
[ 'Plack::Middleware::Profiler::KYTProf::Profile::TemplateEngine', 'Plack::Middleware::Profiler::KYTProf::Profile::KVS' ];
See Devel::KYTProf POD.
undef
This source is in Github:
http://github.com/dann/p5-plack-middleware-profiler-kytprof
Many thanks to:
Dann <techmemo@gmail.com>
Devel::KYTProf
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::Profiler::KYTProf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Profiler::KYTProf
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Profiler::KYTProf
For more information on module installation, please visit the detailed CPAN module installation guide.