1
<script language="javascript" type="text/javascript">
3
if(typeof(console)=='object')
5
console.group("Report Sommario del Profiling");
6
console.log(" count totale media min max ");
8
foreach($data as $index=>$entry)
10
$proc=CJavaScript::quote($entry[0]);
11
$count=sprintf('%5d',$entry[1]);
12
$min=sprintf('%0.5f',$entry[2]);
13
$max=sprintf('%0.5f',$entry[3]);
14
$total=sprintf('%0.5f',$entry[4]);
15
$average=sprintf('%0.5f',$entry[4]/$entry[1]);
16
echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";