You are here

private function Symbol::parseParentChild in XHProf 8

Parameters

$parent_child:

Return value

array

1 call to Symbol::parseParentChild()
Symbol::__construct in src/XHProfLib/Symbol/Symbol.php

File

src/XHProfLib/Symbol/Symbol.php, line 131

Class

Symbol
Provides a value object for single span of profiling.

Namespace

Drupal\xhprof\XHProfLib\Symbol

Code

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

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