The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::Net::Curl::Queued::Stats - Connection statistics for AnyEvent::Net::Curl::Queued::Easy

VERSION

version 0.014

SYNOPSIS

    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);

DESCRIPTION

Tracks statistics for AnyEvent::Net::Curl::Queued and AnyEvent::Net::Curl::Queued::Easy.

ATTRIBUTES

stamp

Unix timestamp for statistics update.

stats

HashRef[Num] with statistics:

    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
    total_time

Variable names are from respective curl_easy_getinfo() accessors.

METHODS

sum($from)

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.

SEE ALSO

AUTHOR

Stanislaw Pusep <stas@sysd.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 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.