예제 #1
0
 public function postProcessRun()
 {
     $testerError = null;
     $secure = false;
     $haveLocations = false;
     loadPageRunData($this->testRoot, $this->run, $this->cached);
     $steps = $this->countSteps();
     for ($i = 1; $i <= $steps; $i++) {
         $rootUrls = UrlGenerator::create(true, "", $this->id, $this->run, $this->cached, $i);
         $stepPaths = new TestPaths($this->testRoot, $this->run, $this->cached, $i);
         $requests = getRequestsForStep($stepPaths, $rootUrls, $secure, $haveLocations, true, true);
         if (isset($requests) && is_array($requests) && count($requests)) {
             getBreakdownForStep($stepPaths, $rootUrls, $requests);
         } else {
             $testerError = 'Missing Results';
         }
         if (is_dir(__DIR__ . '/../google') && is_file(__DIR__ . '/../google/google_lib.inc')) {
             require_once __DIR__ . '/../google/google_lib.inc';
             ParseCsiInfoForStep($stepPaths, true);
         }
         GetDevToolsCPUTimeForStep($stepPaths);
     }
     return $testerError;
 }
예제 #2
0
 require_once 'google/google_lib.inc';
 ?>
                 <h2>Csi Metrics</h2>
                         <table id="tableCustomMetrics" class="pretty" align="center" border="1" cellpadding="10" cellspacing="0">
                            <tr>
                         <?php 
 if ($isMultistep) {
     echo '<th align="center" class="border" valign="middle">Step</th>';
 }
 foreach ($test['testinfo']['extract_csi'] as $csi_param) {
     echo '<th align="center" class="border" valign="middle">' . $csi_param . '</th>';
 }
 echo "</tr>\n";
 foreach ($testRunResults->getStepResults() as $stepResult) {
     echo "<tr>\n";
     $params = ParseCsiInfoForStep($stepResult->createTestPaths(), true);
     if ($isMultistep) {
         echo '<td class="even" valign="middle">' . $stepResult->readableIdentifier() . '</td>';
     }
     foreach ($test['testinfo']['extract_csi'] as $csi_param) {
         if (array_key_exists($csi_param, $params)) {
             echo '<td class="even" valign="middle">' . $params[$csi_param] . '</td>';
         } else {
             echo '<td class="even" valign="middle">&nbsp;</td>';
         }
     }
     echo "</tr>\n";
 }
 ?>
                 </table><br>
             <?php