private function _createMap() { $out = "<map name=\"" . $this->mapName . "\">\n"; $connection_rows = GetConnectionRows($this->requests->getRequests()); $options = array('id' => $this->testInfo->getId(), 'path' => $this->testInfo->getRootDirectory(), 'run_id' => $this->stepResult->getRunNumber(), 'is_cached' => $this->stepResult->isCachedRun(), 'step_id' => $this->stepResult->getStepNumber(), 'use_cpu' => true, 'show_labels' => true, 'width' => 930); $map = GetWaterfallMap($connection_rows, $this->stepResult->readableIdentifier(), $options, $this->stepResult->getRawResults()); $stepNumber = $this->stepResult->getStepNumber(); foreach ($map as $entry) { if (array_key_exists('request', $entry)) { $index = $entry['request'] + 1; $title = "{$index}: " . htmlspecialchars($entry['url']); $out .= "<area href=\"#step{$stepNumber}_request{$index}\" alt=\"{$title}\" title=\"{$title}\" shape=RECT coords=\"{$entry['left']},{$entry['top']},{$entry['right']},{$entry['bottom']}\">\n"; } elseif (array_key_exists('url', $entry)) { $out .= "<area href=\"#step{$stepNumber}_request\" alt=\"{$entry['url']}\" title=\"{$entry['url']}\" shape=RECT coords=\"{$entry['left']},{$entry['top']},{$entry['right']},{$entry['bottom']}\">\n"; } } $out .= "</map>\n"; return $out; }
<tr> <td> <div id="tableRequestsRv_div" style="width: 100%;"></div> </td> <td> <div id="tableBytesRv_div" style="width: 100%;"></div> </td> </tr> </table> <div style="text-align:center;"> <h3 name="connection">Connection View (Repeat View)</h3> <map name="connection_map_rv"> <?php $connection_rows = GetConnectionRows($requestsFv, $summary); $options = array('id' => $id, 'path' => $testPath, 'run_id' => $run, 'is_cached' => $cached, 'use_cpu' => true, 'show_labels' => true, 'is_mime' => $mime); $map = GetWaterfallMap($connection_rows, $url, $options, $pageData); foreach ($map as $entry) { if ($entry['request'] !== NULL) { $index = $entry['request'] + 1; $title = $index . ': ' . $entry['url']; echo '<area href="#request' . $index . '" alt="' . $title . '" title="' . $title . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n"; } else { echo '<area href="#request" alt="' . $entry['url'] . '" title="' . $entry['url'] . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n"; } } ?> </map> <table border="1" cellpadding="2px" cellspacing="0" style="width:auto; font-size:11px; margin-left:auto; margin-right:auto;"> <tr> <td class="legend"><table><tr><td class="legend"><div class="bar" style="width:2px; background-color:#28BC00"></div></td><td class="legend">Start Render</td></tr></table></td> <?php