1
0
www.mikescher.com/framework/views/fi/profile-summary-firebug.php

23 lines
582 B
PHP
Raw Permalink Normal View History

2014-05-13 12:40:42 +02:00
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiloinnin yhteenvetoraportti");
console.log(" lukum. yht. keskim. väh. enint.");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$min=sprintf('%0.5f',$entry[2]);
$max=sprintf('%0.5f',$entry[3]);
$total=sprintf('%0.5f',$entry[4]);
$average=sprintf('%0.5f',$entry[4]/$entry[1]);
echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>