Archive::Har::Page::PageTimings - Represents detailed timing of page within the HTTP Archive
Version 0.04
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"; }
returns the number of milliseconds since $har->page()->startedDateTime() that the content of the page loaded or undef if the timing does not apply
returns the number of milliseconds since $har->page()->startedDateTime() that the page loaded or undef if the timing does not apply
returns the comment about the page timing
To install Archive::Har, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Archive::Har
CPAN shell
perl -MCPAN -e shell install Archive::Har
For more information on module installation, please visit the detailed CPAN module installation guide.