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

NAME

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

VERSION

Version 0.04

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