You are here

function xhprof_percent_format in XHProf 7

Same name and namespace in other branches
  1. 6 xhprof.inc \xhprof_percent_format()
1 call to xhprof_percent_format()
xhprof_print_pct in ./xhprof.inc
Prints a <td> element with a pecentage.
1 string reference to 'xhprof_percent_format'
xhprof.inc in ./xhprof.inc

File

./xhprof.inc, line 266

Code

function xhprof_percent_format($s, $precision = 1) {
  return sprintf('%.' . $precision . 'f%%', 100 * $s);
}