function render_included(EurekaProfiler_Session $session, $tab) { ?> <table class="summary"> <tr> <td style="background: <?php echo $tab['color']; ?> ;"> <h3><?php echo EurekaProfiler_Tools::readable_number(count($session->loaded_files)); ?> </h3> <h4>Total files</h4> </td> </tr> <tr> <td style="background: <?php echo $tab['alternate']; ?> ;"> <h3><?php echo EurekaProfiler_Tools::readable_size($session->total_included_size()); ?> </h3> <h4>Total size</h4> </td> </tr> <tr> <td class="border" style="background: <?php echo $tab['color']; ?> ;padding-top:0"> <?php $chart_rows = array(); foreach ($session->loaded_files as $file) { $chart_rows[] = array($file->path, $file->size); } echo render_chart($chart_rows, 'File'); ?> <h4>Size chart</h4> </td> </tr> </table> <div class="data-wrapper"> <table class="data"> <?php $show = array(); foreach ($session->loaded_files as $file) { $show[$file->path] = EurekaProfiler_Tools::readable_size($file->size); } basic_row('', $show); ?> </table> </div> <?php }