#!/usr/bin/perl # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. use CGI::Carp qw(fatalsToBrowser); use CGI::Request; use URLTimingDataSet; use strict; my $request = new CGI::Request; my $id = $request->param('id'); #XXX need to check for valid parameter id print "Content-type: text/html\n\n"; print "
See Notes at the bottom of this page for some details.
\n"; print "\n"; my $rs = URLTimingDataSet->new($id); print "Test id: $id\n\n\n"; #XXX print more info (test id, ua, start time, user, IP, etc.) # draw the chart sorted # XXX enable this line to draw a chart, sorted by time. However, in order # to draw the chart, you will need to have installed the 'gd' drawing library, # and the GD and GD::Graph Perl modules. ###print "\n
Avg. Median : ", $rs->{avgmedian}, " msec\t\tMinimum : ", $rs->{minimum}, " msec\n"; print "Average : ", $rs->{average}, " msec\t\tMaximum : ", $rs->{maximum}, " msec
\nIDX PATH AVG MED MAX MIN TIMES ...\n"; if ($request->param('sort')) { print $rs->as_string_sorted(); } else { print $rs->as_string(); } print "\n"; printEndNotes(); exit; sub printEndNotes { print <<"EndOfNotes";