xhprof/classes/model.php
/**
     * The raw data contains inclusive metrics of a function for each
     * unique parent function it is called from. The total inclusive metrics
     * for a function is therefore the sum of inclusive metrics for the
     * function across all parents.
     *
     * @author	Gajus Kuizinas <g.kuizinas@anuary.com>
     */
The raw data contains inclusive metrics of a function for each
unique parent function it is called from. The total inclusive metrics
for a function is therefore the sum of inclusive metrics for the
function across all parents.

@author  Gajus Kuizinas 
The raw data contains inclusive metrics of a function for each unique parent function it is called from . The total inclusive metrics for a function is therefore the sum of inclusive metrics for the function across all parents . @author Gajus Kuizinas
private function computeInclusiveMetrics()
    {
        $functions	= array();
        foreach($this->request['callstack'] as $call) {
            $caller	= $call['caller_id'];
            unset($call['caller_id'], $call['caller']);
            if(!isset($functions[$call['callee_id']])) {
                $call['callers']				= array($caller);
                $functions[$call['callee_id']]	= $call;
                continue;
            }
            $functions[$call['callee_id']]['callers'][]	= $caller;
            foreach($call['metrics'] as $k => $v) {
                $functions[$call['callee_id']]['metrics'][$k]	+= $v;
            }
        }
        return array_values($functions);
    }
private function computeInclusiveMetrics ( ) { $ functions = array ( ) ; foreach ( $ this -> request [ 'callstack' ] as $ call ) { $ caller = $ call [ 'caller_id' ] ; unset ( $ call [ 'caller_id' ] , $ call [ 'caller' ] ) ; if ( ! isset ( $ functions [ $ call [ 'callee_id' ] ] ) ) { $ call [ 'callers' ] = array ( $ caller ) ; $ functions [ $ call [ 'callee_id' ] ] = $ call ; continue ; } $ functions [ $ call [ 'callee_id' ] ] [ 'callers' ] [ ] = $ caller ; foreach ( $ call [ 'metrics' ] as $ k => $ v ) { $ functions [ $ call [ 'callee_id' ] ] [ 'metrics' ] [ $ k ] += $ v ; } } return array_values ( $ functions ) ; }
The raw data contains inclusive metrics of a function for each
 unique parent function it is called from.
The raw data contains inclusive metrics of a function for each unique parent function it is called from .