Ejemplo n.º 1
0
 }
 // Do any post-processing on this individual run that doesn't requre the test to be locked
 if (isset($runNumber) && isset($cacheWarmed)) {
     $secure = false;
     $haveLocations = false;
     $requests = getRequests($id, $testPath, $runNumber, $cacheWarmed, $secure, $haveLocations, false);
     if (isset($requests) && is_array($requests) && count($requests)) {
         getBreakdown($id, $testPath, $runNumber, $cacheWarmed, $requests);
     } else {
         $testerError = 'Missing Results';
     }
     if (is_dir('./google') && is_file('./google/google_lib.inc')) {
         require_once 'google/google_lib.inc';
         ParseCsiInfo($id, $testPath, $runNumber, $cacheWarmed, true);
     }
     GetDevToolsCPUTime($testPath, $runNumber, $cacheWarmed);
 }
 // mark this run as complete
 if (isset($runNumber) && isset($cacheWarmed)) {
     if ($testInfo['fvonly'] || $cacheWarmed) {
         if (!array_key_exists('test_runs', $testInfo)) {
             $testInfo['test_runs'] = array();
         }
         if (array_key_exists($runNumber, $testInfo['test_runs'])) {
             $testInfo['test_runs'][$runNumber]['done'] = true;
         } else {
             $testInfo['test_runs'][$runNumber] = array('done' => true);
         }
         $testInfo_dirty = true;
     }
     if ($testInfo['video']) {
Ejemplo n.º 2
0
                vertical-align:top; 
                padding:0;
            }
            
            th.header {
              font-weight: normal;
            }
        </style>
    </head>
    <body>
        <div class="page">
            <?php 
$tab = 'Test Result';
$subtab = 'Processing Breakdown';
include 'header.inc';
$processing = GetDevToolsCPUTime($testPath, $run, $cached);
if (isset($processing)) {
    arsort($processing);
    $mapping = array('EvaluateScript' => 'Scripting', 'FunctionCall' => 'Scripting', 'GCEvent' => 'Scripting', 'TimerFire' => 'Scripting', 'Layout' => 'Rendering', 'RecalculateStyles' => 'Rendering', 'Paint' => 'Painting', 'DecodeImage' => 'Painting', 'ResizeImage' => 'Painting', 'CompositeLayers' => 'Painting', 'Rasterize' => 'Painting', 'ResourceReceivedData' => 'Loading', 'ParseHTML' => 'Loading', 'ResourceReceiveResponse' => 'Loading', 'Idle' => 'Idle');
    $groups = array('Scripting' => 0, 'Rendering' => 0, 'Painting' => 0, 'Loading' => 0, 'Other' => 0, 'Idle' => 0);
    $groupColors = array('Scripting' => '#f1c453', 'Rendering' => '#9a7ee6', 'Painting' => '#71b363', 'Loading' => '#70a2e3', 'Other' => '#f16161', 'Idle' => '#cbd1d9');
    if (!array_key_exists('Idle', $processing)) {
        $processing['Idle'] = 0;
    }
    foreach ($processing as $type => $time) {
        $group = 'Other';
        if (array_key_exists($type, $mapping)) {
            $group = $mapping[$type];
        }
        $groups[$group] += $time;
    }