AnyEvent::Net::Curl::Queued::Stats - Connection statistics for AnyEvent::Net::Curl::Queued::Easy
version 0.047
use AnyEvent::Net::Curl::Queued; use Data::Printer; my $q = AnyEvent::Net::Curl::Queued->new; #... $q->wait; p $q->stats; $q->stats->sum(AnyEvent::Net::Curl::Queued::Stats->new);
This module isn't using Any::Moose anymore due to the announced deprecation status of that module. The switch to the Moo is known to break modules that do extend 'AnyEvent::Net::Curl::Queued::Easy' / extend 'YADA::Worker'! To keep the compatibility, make sure that you are using MooseX::NonMoose:
extend 'AnyEvent::Net::Curl::Queued::Easy'
extend 'YADA::Worker'
package YourSubclassingModule; use Moose; use MooseX::NonMoose; extends 'AnyEvent::Net::Curl::Queued::Easy'; ...
Or MouseX::NonMoose:
package YourSubclassingModule; use Mouse; use MouseX::NonMoose; extends 'AnyEvent::Net::Curl::Queued::Easy'; ...
Or the Any::Moose equivalent:
package YourSubclassingModule; use Any::Moose; use Any::Moose qw(X::NonMoose); extends 'AnyEvent::Net::Curl::Queued::Easy'; ...
However, the recommended approach is to switch your subclassing module to Moo altogether (you can use MooX::late to smoothen the transition):
package YourSubclassingModule; use Moo; use MooX::late; extends 'AnyEvent::Net::Curl::Queued::Easy'; ...
Tracks statistics for AnyEvent::Net::Curl::Queued and AnyEvent::Net::Curl::Queued::Easy.
Unix timestamp for statistics update.
HashRef[Num] with statistics:
HashRef[Num]
appconnect_time connect_time header_size namelookup_time num_connects pretransfer_time redirect_count redirect_time request_size size_download size_upload starttransfer_time total_time
Variable names are from respective curl_easy_getinfo() accessors.
Aggregate attributes from the $from object. It is supposed to be an instance of AnyEvent::Net::Curl::Queued::Easy or AnyEvent::Net::Curl::Queued::Stats.
$from
AnyEvent::Net::Curl::Queued::Easy
AnyEvent::Net::Curl::Queued
Stanislaw Pusep <stas@sysd.org>
This software is copyright (c) 2014 by Stanislaw Pusep.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::Net::Curl::Queued, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Net::Curl::Queued
CPAN shell
perl -MCPAN -e shell install AnyEvent::Net::Curl::Queued
For more information on module installation, please visit the detailed CPAN module installation guide.