~horux-dev/horux-webcli/thfo

« back to all changes in this revision

Viewing changes to yii/framework/views/no/profile-summary.php

  • Committer: Thierry Forchelet
  • Date: 2011-02-25 13:30:15 UTC
  • Revision ID: thierry.forchelet@letux.ch-20110225133015-zxyj9w7sqv8ly971
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- start profiling summary -->
 
2
<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;">
 
3
        <tr>
 
4
                <th style="background:black;color:white;" colspan="6">
 
5
                        Resultat av profilering
 
6
                        (Tid: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
 
7
                        Minnebruk: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
 
8
                </th>
 
9
        </tr>
 
10
        <tr style="background-color: #ccc;">
 
11
            <th>Funksjon</th>
 
12
                <th>Antall</th>
 
13
                <th>Totalt (sek)</th>
 
14
                <th>Gjennomsnitt (sek)</th>
 
15
                <th>Min (sek)</th>
 
16
                <th>Maks (sek)</th>
 
17
        </tr>
 
18
<?php
 
19
foreach($data as $index=>$entry)
 
20
{
 
21
        $color=($index%2)?'#F5F5F5':'#FFFFFF';
 
22
        $proc=CHtml::encode($entry[0]);
 
23
        $min=sprintf('%0.5f',$entry[2]);
 
24
        $max=sprintf('%0.5f',$entry[3]);
 
25
        $total=sprintf('%0.5f',$entry[4]);
 
26
        $average=sprintf('%0.5f',$entry[4]/$entry[1]);
 
27
 
 
28
        echo <<<EOD
 
29
        <tr style="background:{$color}">
 
30
                <td>{$proc}</td>
 
31
                <td align="center">{$entry[1]}</td>
 
32
                <td align="center">{$total}</td>
 
33
                <td align="center">{$average}</td>
 
34
                <td align="center">{$min}</td>
 
35
                <td align="center">{$max}</td>
 
36
        </tr>
 
37
EOD;
 
38
}
 
39
?>
 
40
</table>
 
41
<!-- end of profiling summary -->
 
 
b'\\ No newline at end of file'