Gungho::Plugin::RequestTimer - Keep Track Of Time To Finish Request
plugins: - module: RequestTimer config: verbose: 0 # optional
NOTICE This module has been deprecated. Please use RequestLog instead.
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.
Sets up the plugin.
Copyright (c) 2007 Daisuke Maki <email@example.com>
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.