Show
Ignore:
Timestamp:
06/09/2008 10:42:37 AM (6 months ago)
Author:
Shadowhand
Message:

Added total rows count to Profiler's database output. Thanks speal!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Profiler.php

    r2688 r2774  
    175175 
    176176                text::alternate(); 
    177                 $total_time = 0; 
     177                $total_time = $total_rows = 0; 
    178178                foreach ($queries as $query) 
    179179                { 
     
    182182                        $table->add_row($data, $class); 
    183183                        $total_time += $query['time']; 
    184                 } 
    185  
    186                 $data = array('Total: ' . count($queries), number_format($total_time, 3), ''); 
     184                        $total_rows += $query['rows']; 
     185                } 
     186 
     187                $data = array('Total: ' . count($queries), number_format($total_time, 3), $total_rows); 
    187188                $table->add_row($data, 'kp-totalrow'); 
    188189        }