David Dick > Archive-Har-0.05 > Archive::Har::Page::PageTimings

Download:
Archive-Har-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Archive::Har::Page::PageTimings - Represents detailed timing of page within the HTTP Archive

VERSION ^

Version 0.05

SYNOPSIS ^

    use Archive::Har();

    my $http_archive_string = '"log": { "version": "1.1", .... ';
    my $har = Archive::Har->new();
    $har->string($http_archive_string);
    foreach my $page ($har->pages()) {
        my $timings = $page->pageTimings();
        print "onContentLoad for " . $page->title() . ": " . $timings->onContentLoad() . "\n";
        print "onLoad for " . $page->title() . ": " . $timings->onLoad() . "\n";
        print "Comment for " . $page->title() . ": " . $timings->comment() . "\n";
    }

SUBROUTINES/METHODS ^

onContentLoad

returns the number of milliseconds since $har->page()->startedDateTime() that the content of the page loaded or undef if the timing does not apply

onLoad

returns the number of milliseconds since $har->page()->startedDateTime() that the page loaded or undef if the timing does not apply

comment

returns the comment about the page timing

syntax highlighting: