?> "); gaSnippets.push("<?php echo percentByProtocol($hStats); ?> "); gaSnippets.push("<?php echo requestErrors($hStats); ?> "); gaSnippets.push("<?php echo correlationChart($hStats, "onLoad"); ?> "); gaSnippets.push("<?php echo correlationChart($hStats, "renderStart"); ?> "); // The DOM element that is created from each snippet. var gaSnippetElems = new Array(); var curSnippet; function showSnippet(parentId, bPrev) { var parent = document.getElementById(parentId); if ( ! parent ) { return; } var iSnippet = Math.floor(gaSnippets.length * Math.random());
echo percentFonts($hStats) . "\n"; echo popularImageFormats($hStats) . "\n"; echo maxage($hStats) . "\n"; echo histogram($hCdf, "numRedirects", "Redirects per Page", "redirects") . "\n"; echo histogram($hCdf, "_connections", "Connections per Page", "connections", 10) . "\n"; echo histogram($hCdf, "avg_dom_depth", "Avg DOM Depth", "avgdomdepth") . "\n"; echo histogram($hCdf, "document_height", "Document Height (pixels)", "docheight", 1000) . "\n"; echo histogram($hCdf, "localstorage_size", "Size of localStorage (chars)", "localstorage", 50) . "\n"; echo histogram($hCdf, "sessionstorage_size", "Size of sessionStorage (chars)", "sessionstorage", 50) . "\n"; echo histogram($hCdf, "num_iframes", "Iframes per Page", "numiframes") . "\n"; echo histogram($hCdf, "num_scripts", "Script Tags per Page", "numscripts", 10) . "\n"; echo percentByProtocol($hStats) . "\n"; echo requestErrors($hStats) . "\n"; echo correlationChart($hStats, "renderStart") . "\n"; echo correlationChart($hStats, "SpeedIndex") . "\n"; echo correlationChart($hStats, "onLoad") . "\n"; echo histogram($hCdf, "reqTotal", "Total Requests per Page", "reqTotal", 25) . "\n"; echo histogram($hCdf, "bytesTotal", "Total Transfer Size per Page", "bytesTotal", 1024 * 1024) . "\n"; echo histogram($hCdf, "reqHtml", "HTML Requests per Page", "reqHtml", 5) . "\n"; echo histogram($hCdf, "bytesHtml", "HTML Transfer Size per Page", "bytesHtml", 20 * 1024) . "\n"; echo histogram($hCdf, "reqJS", "JS Requests per Page", "reqJS", 5) . "\n"; echo histogram($hCdf, "bytesJS", "JS Transfer Size per Page", "bytesJS", 100 * 1024, 2) . "\n"; echo histogram($hCdf, "reqCSS", "CSS Requests per Page", "reqCSS", 2) . "\n"; echo histogram($hCdf, "bytesCSS", "CSS Transfer Size per Page", "bytesCSS", 10 * 1024, 2) . "\n"; echo histogram($hCdf, "reqImg", "Img Requests per Page", "reqImg", 20) . "\n"; echo histogram($hCdf, "bytesImg", "Img Transfer Size per Page", "bytesImg", 400 * 1024, 2) . "\n"; echo histogram($hCdf, "reqGif", "GIF Requests per Page", "reqGif", 5) . "\n"; echo histogram($hCdf, "bytesGif", "GIF Transfer Size per Page", "bytesGif", 10 * 1024, 2) . "\n"; echo histogram($hCdf, "reqJpg", "JPG Requests per Page", "reqJpg", 10) . "\n"; echo histogram($hCdf, "bytesJpg", "JPG Transfer Size per Page", "bytesJpg", 200 * 1024, 2) . "\n"; echo histogram($hCdf, "reqPng", "PNG Requests per Page", "reqPng", 5) . "\n";