src/Core/Benchmark.php
public function getTotals(array $markers)
    {
        $totals = [
            'time'   => 0,
            'memory' => 0,
        ];

        foreach ($markers as $marker) {
            $total = $this->getTotal($marker);

            $totals['time']   += $total['time'];
            $totals['memory'] += $total['memory'];
        }

        return $totals;
    }
public function getTotals(array $markers)
    {
        $totals = [
            'time'   => 0,
            'memory' => 0,
        ];

        foreach ($markers as $marker) {
            $total = $this->getTotal($marker);

            $totals['time']   += $total['time'];
            $totals['memory'] += $total['memory'];
        }

        return $totals;
    }
@param array $markers

@return array