Ticket #242: profiler.patch
| File profiler.patch, 0.7 kB (added by charlie, 6 months ago) |
|---|
-
Profiler.php
175 175 176 176 text::alternate(); 177 177 $total_time = 0; 178 $total_rows = 0; 178 179 foreach ($queries as $query) 179 180 { 180 181 $data = array($query['query'], number_format($query['time'], 3), $query['rows']); 181 182 $class = text::alternate('', 'kp-altrow'); 182 183 $table->add_row($data, $class); 183 184 $total_time += $query['time']; 185 $total_rows += $query['rows']; 184 186 } 185 187 186 $data = array('Total: ' . count($queries), number_format($total_time, 3), '');188 $data = array('Total: ' . count($queries), number_format($total_time, 3), $total_rows); 187 189 $table->add_row($data, 'kp-totalrow'); 188 190 } 189 191
