Show
Ignore:
Timestamp:
11/26/2007 05:11:15 PM (12 months ago)
Author:
PugFish
Message:

Added total database query time to profiler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana_profiler.php

    r1168 r1288  
    4343        background-color: #F7FBFF; 
    4444} 
     45#kohana-profiler .kp-totalrow td 
     46{ 
     47        background-color: #FAFAFA; 
     48        border-top: 1px solid #D2DCE5; 
     49        font-weight: bold; 
     50} 
    4551#kp-benchmarks th 
    4652{ 
     
    137143        else: 
    138144                text::alternate(); 
     145                $total_time = 0; 
    139146                foreach($queries as $query): 
    140  
     147                        $total_time += $query['time']; 
    141148?> 
    142149                <tr<?php echo text::alternate('', ' class="kp-altrow"') ?>> 
     
    148155 
    149156                endforeach; 
     157?> 
     158                <tr class="kp-totalrow"> 
     159                        <td>Total</td> 
     160                        <td class="kp-column kp-data"><?php echo number_format($total_time, 4) ?></td> 
     161                        <td class="kp-column kp-data">&nbsp;</td> 
     162                </tr> 
     163<?php 
     164 
    150165        endif; 
    151166endif;