Beispiel #1
0
?>
");
gaSnippets.push("<?php 
echo percentFlash($hStats);
?>
");
gaSnippets.push("<?php 
echo percentFonts($hStats);
?>
");
gaSnippets.push("<?php 
echo popularImageFormats($hStats);
?>
");
gaSnippets.push("<?php 
echo maxage($hStats);
?>
");
gaSnippets.push("<?php 
echo percentByProtocol($hStats);
?>
");
gaSnippets.push("<?php 
echo requestErrors($hStats);
?>
");
gaSnippets.push("<?php 
echo correlationChart($hStats, "onLoad");
?>
");
gaSnippets.push("<?php 
<div id=interesting style="margin-top: 40px;">
<?php 
require_once "stats.inc";
require_once "charts.inc";
$hStats = getStats($gLabel, $gSlice, curDevice());
$hCdf = getCdfData($gLabel, $gSlice, curDevice());
echo bytesContentTypeChart($hStats) . "\n";
echo responseSizes($hStats) . "\n";
echo histogram($hCdf, "bytesHtmlDoc", "HTML Document Transfer Size", "bytesHtmlDoc", 5 * 1024) . "\n";
echo histogram($hCdf, "numDomElements", "# of DOM Elements per Page", "numDomElements", 400, 2) . "\n";
echo percentGoogleLibrariesAPI($hStats) . "\n";
echo percentFlash($hStats) . "\n";
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";