Plack::Middleware::Debug::Dancer::TemplateTimer - Template and layout rendering timer for Dancer
0.001
To activate this panel:
plack_middlewares: Debug: - panels - - Dancer::TemplateTimer
Or by manually creating an app.psgi, that might contain:
builder { enable 'Debug', panels => ['Dancer::TemplateTimer']; $app; };
This middleware adds timers around calls to "render" in Dancer::Template::Abstract and "layout" in Dancer::Template::Abstract to track the time spent rendering the template and the layout for the page.
This module uses "install_modifier" in Class::Method::Modifiers rather than adding hooks since we want to be sure we are only timing the template engine and not other code inside hooks.
Peter Mottram (SysPete), <peter at sysnix.com>
<peter at sysnix.com>
Copyright 2016 Peter Mottram (SysPete).
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Plack::Middleware::Debug::Dancer::TemplateTimer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Debug::Dancer::TemplateTimer
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Debug::Dancer::TemplateTimer
For more information on module installation, please visit the detailed CPAN module installation guide.