function xhprof_print_symbol_summary in XHProf 6
Same name and namespace in other branches
- 7 xhprof.inc \xhprof_print_symbol_summary()
File
- ./
xhprof.inc, line 1064
Code
function xhprof_print_symbol_summary($symbol_info, $stat, $base) {
$val = $symbol_info[$stat];
$desc = str_replace("<br>", " ", xhprof_stat_description($stat));
$output .= "{$desc}: </td>";
$output .= number_format($val);
$output .= " (" . pct($val, $base) . "% of overall)";
if (substr($stat, 0, 4) == "excl") {
$func_base = $symbol_info[str_replace("excl_", "", $stat)];
$output .= " (" . pct($val, $func_base) . "% of this function)";
}
$output .= "<br>";
return $output;
}