public function getTotalMemoryUsage() { $total = 0.0; foreach ($this->memoryUsages as $memoryUsage) { $total += $memoryUsage['value']; } return $total; }