Added new (clean) yii boilerplate
This commit is contained in:
22
framework/views/no/profile-summary-firebug.php
Normal file
22
framework/views/no/profile-summary-firebug.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
if(typeof(console)=='object')
|
||||
{
|
||||
console.group("Resultat av profilering");
|
||||
console.log(" antall totalt gjennomsnitt min maks ");
|
||||
<?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>
|
||||
Reference in New Issue
Block a user