Today I knocked up a quick plugin for the Dancer Perl web framework to log the time taken by requests to help look for bottlenecks – enter Dancer::Plugin::TimeRequests.
At the moment it’s very simple, and simply logs the time taken to execute every request; in the future, I may extend it to support capturing statistics and adding a route handler to display stats (e.g. average request time, which routes take the longest to execute, etc.)
Suggestions / patches welcome – the code is on GitHub as usual.
Hello David,
This is a much needed plugin. By the way, the title of this blog post seems to mention ‘Database’.
Regards.