~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/views/it/profile-summary-firebug.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<script language="javascript" type="text/javascript">
 
2
/*<![CDATA[*/
 
3
if(typeof(console)=='object')
 
4
{
 
5
        console.group("Report Sommario del Profiling");
 
6
        console.log(" count   totale   media    min      max   ");
 
7
<?php
 
8
foreach($data as $index=>$entry)
 
9
{
 
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";
 
17
}
 
18
?>
 
19
        console.groupEnd();
 
20
}
 
21
/*]]>*/
 
22
</script>