You are here

function xhprof_parse_parent_child in XHProf 7

Same name and namespace in other branches
  1. 6 xhprof.inc \xhprof_parse_parent_child()

Takes a parent/child function name encoded as "a==>b" and returns array("a", "b").

@author Kannan

4 calls to xhprof_parse_parent_child()
xhprof_compute_flat_info in ./xhprof.inc
Analyze hierarchical raw data, and compute per-function (flat) inclusive and exclusive metrics.
xhprof_compute_inclusive_times in ./xhprof.inc
xhprof_symbol_report in ./xhprof.inc
Generates a report for a single function/symbol.
xhprof_trim_run in ./xhprof.inc
Return a trimmed version of the XHProf raw data. Note that the raw data contains one entry for each unique parent/child function combination.The trimmed version of raw data will only contain entries where either the parent or child function is in the…

File

./xhprof.inc, line 1572

Code

function xhprof_parse_parent_child($parent_child) {
  $ret = explode("==>", $parent_child);

  // Return if both parent and child are set
  if (isset($ret[1])) {
    return $ret;
  }
  return array(
    NULL,
    $ret[0],
  );
}