function theme_xhprof_overall_summary in XHProf 6
Same name and namespace in other branches
- 7 xhprof.module \theme_xhprof_overall_summary()
Theme function to display XHProf run summary.
1 theme call to theme_xhprof_overall_summary()
- xhprof_full_report in ./
xhprof.inc - Generates a tabular report for all functions. This is the top-level report.
File
- ./
xhprof.module, line 399
Code
function theme_xhprof_overall_summary($totals, $possible_metrics, $metrics, $display_calls) {
$output = '';
$rows = array();
foreach ($metrics as $metric) {
$rows[] = array(
'<strong>Total ' . xhprof_stat_description($metric) . ':</strong>',
number_format($totals[$metric]) . " " . $possible_metrics[$metric][1],
);
}
if ($display_calls) {
$rows[] = array(
"<strong>Number of function xhprof_Calls:</strong>",
number_format($totals['ct']),
);
}
$header = array(
array(
'data' => 'Overall Summary',
'colspan' => 2,
),
);
$output .= theme('table', $header, $rows);
return $output;
}