function xhprof_print_num in XHProf 7
Same name and namespace in other branches
- 6 xhprof.inc \xhprof_print_num()
Prints a <td> element with a numeric value.
2 calls to xhprof_print_num()
- xhprof_full_report in ./
xhprof.inc - Generates a tabular report for all functions. This is the top-level report.
- xhprof_symbol_report in ./
xhprof.inc - Generates a report for a single function/symbol.
1 string reference to 'xhprof_print_num'
File
- ./
xhprof.inc, line 714
Code
function xhprof_print_num($num, $fmt_func = NULL, $bold = FALSE, $attributes = NULL) {
$class = xhprof_get_print_class($num, $bold);
if (!empty($fmt_func)) {
$num = call_user_func($fmt_func, $num);
}
//return "<td $attributes class='$class'>$num</td>\n";
$num = number_format($num);
return "<span class='{$class}'>{$num}</span>\n";
//return $num;
}