The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

Version '0.11'

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->on_content_load() . "\n";
        print "onLoad for " . $page->title() . ": " . $timings->on_load() . "\n";
        print "Comment for " . $page->title() . ": " . $timings->comment() . "\n";
    }

SUBROUTINES/METHODS

new

returns a new PageTimings object

on_content_load

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

on_load

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