protected function _getChildren($symbol, $metric = null, $threshold = 0)
{
$children = array();
if (!isset($this->_indexed[$symbol])) {
return $children;
}
$total = 0;
if (isset($metric)) {
$top = $this->_indexed[self::NO_PARENT];
// Not always 'main()'
$mainFunc = current($top);
$total = $mainFunc[$metric];
}
foreach ($this->_indexed[$symbol] as $name => $data) {
if ($metric && $total > 0 && $threshold > 0 && $this->_collapsed[$name][$metric] / $total < $threshold) {
continue;
}
$children[] = $data + array('function' => $name);
}
return $children;
}