NAME
Mojolicious::Plugin::RequestTimer - Request timer plugin
SYNOPSIS
# Mojolicious
$self->plugin('RequestTimer');
# Mojolicious::Lite
plugin 'RequestTimer';
DESCRIPTION
Mojolicious::Plugin::RequestTimer is a plugin to gather and log request timing information. This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins.
HELPERS
Mojolicious::Plugin::RequestTimer implements the following helpers.
profile
% profile 'page';
%= profile 'page'
% my ($elapsed, $rps) = profile 'page';
Start profile and return results. Note that this helper is EXPERIMENTAL and might change without warning!
METHODS
Mojolicious::Plugin::RequestTimer inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register plugin hooks in Mojolicious application.