You are here

function xhprof_render_actions in XHProf 6

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

Implodes the text for a bunch of actions (such as links, forms, into a HTML list and returns the text.

1 call to xhprof_render_actions()
xhprof_profiler_report in ./xhprof.inc
Analyze raw data & generate the profiler report (common for both single run mode and diff mode).

File

./xhprof.inc, line 274

Code

function xhprof_render_actions($actions) {
  $out = array();
  if (count($actions)) {
    $out[] = '<ul class="xhprof_actions">';
    foreach ($actions as $action) {
      $out[] = '<li>' . $action . '</li>';
    }
    $out[] = '</ul>';
  }
  return implode('', $out);
}