NAME
Gungho::Plugin::RequestTimer - Keep Track Of Time To Finish Request
SYNOPSIS
plugins:
-
module: RequestTimer
config:
verbose: 0 # optional
DESCRIPTION
Gungho::Plugin::RequestTimer allows you to keep track of the time it took to finish fetching a particular request. The time when the request started, the time when the request was handed to handle_response(), and the total time between the latter two points are stored under the request object's notes() slot.
$request->notes('send_request_time');
$request->notes('handle_response_time');
$request->notes('total_request_time');
Note that these values may not correspond exactly to when the acutal HTTP transaction started/finished, but rather, it's just a hook to show when these particular events happened in Gungho's life cycle.
If you have Time::HiRes in your system, Time::HiRes::time() is used over regular time() as the store time values.
METHODS
setup()
Sets up the plugin.
log_start()
Starts logging
log_stop()
Ends logging
AUTHOR
Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>
All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html