You are here

function xhprof_print_num in XHProf 6

Same name and namespace in other branches
  1. 7 xhprof.inc \xhprof_print_num()

Prints a <td> element with a numeric value.

5 calls to xhprof_print_num()
theme_xhprof_run_table in ./xhprof.module
Theme function to display list of XHProf function calls.
xhprof_full_report in ./xhprof.inc
Generates a tabular report for all functions. This is the top-level report.
xhprof_pc_info in ./xhprof.inc
Print info for a parent or child function xhprof_in the parent & children report.
xhprof_print_function_info in ./xhprof.inc
Print "flat" data corresponding to one function.
xhprof_symbol_report in ./xhprof.inc
Generates a report for a single function/symbol.

File

./xhprof.inc, line 730

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;
}