} compare += encodeURIComponent(tests[i] + "-l:" + seriesData[i].name.replace("-","").replace(":","") + "-c:" + (cached ? 1 : 0)); graph_compare += encodeURIComponent(tests[i] + "-l:" + seriesData[i].name.replace("-","").replace(":","")); } graph_compare += "&" + (cached ? "rv" : "fv") + "=1"; menu += '<br><a href="' + compare + '">Filmstrip Comparison</a>'; menu += '<br><a href="' + graph_compare + '">Graph Comparison</a>'; menu += '</div>'; $.modal(menu, {overlayClose:true}); } </script> </div> <?php foreach ($metrics as $metric => $label) { echo "<h2>{$label} <span class=\"small\">(<a name=\"{$metric}\" href=\"#{$metric}\">direct link</a>)</span></h2>\n"; DisplayBenchmarkData($metric); } ?> </div> <?php include 'footer.inc'; ?> </div> </body> </html> <?php function DisplayBenchmarkData($metric) { global $count; global $configs;
} echo "<p>Displaying the median run for {$url} trended over time</p>"; } foreach ($metrics as $metric => $label) { if (!isset($out_data)) { echo "<h2>{$label} <span class=\"small\">(<a name=\"{$metric}\" href=\"#{$metric}\">direct link</a>)</span></h2>\n"; } if ($info['expand'] && count($info['locations'] > 1)) { foreach ($info['locations'] as $location => $label) { if (is_numeric($label)) { $label = $location; } DisplayBenchmarkData($info, $metric, $location, $label); } } else { DisplayBenchmarkData($info, $metric); } } if (!isset($out_data)) { ?> </div> <?php include 'footer.inc'; ?> </div> </body> </html> <?php } else { // spit out the raw data
$bm = urlencode($benchmark['name']); if (!isset($out_data)) { echo "<h2><a href=\"view.php?benchmark={$bm}&aggregate={$aggregate}\">{$title}</a> <span class=\"small\">(<a name=\"{$benchmark['name']}\" href=\"#{$benchmark['name']}\">direct link</a>)</span></h2>\n"; if (array_key_exists('description', $benchmark)) { echo "<p>{$benchmark['description']}</p>\n"; } } if ($benchmark['expand'] && count($benchmark['locations'] > 1)) { foreach ($benchmark['locations'] as $location => $label) { if (is_numeric($label)) { $label = $location; } DisplayBenchmarkData($benchmark, $location, $label); } } else { DisplayBenchmarkData($benchmark); } } ?> </div> <?php include 'footer.inc'; ?> </div> </body> </html> <?php /** * Display the charts for the given benchmark *