NAME

Dancer::Plugin::TimeRequests - log how long each request took to process

DESCRIPTION

A simple Dancer plugin to log how long each request took to process. Useful to examine performance.

Future versions will likely add a stats page to show which routes take most time, etc.

SYNOPSIS

In your Dancer app, load this module:

use Dancer::Plugin::TimeRequests;

Then, when your app is logging in debug mode, log messages will be generated showing how logn each request took:

Request to /foo completed in 4.0011 seconds in ....

AUTHOR

David Precious, <davidp at preshweb.co.uk>

BUGS

Please report any bugs or feature requests to bug-dancer-plugin-timerequests at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-TimeRequests. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Plugin::TimeRequests

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2011 David Precious.

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.