public function getMemoryUsage(): int
    {
        return \array_reduce($this->executedStatements, static function ($v, $s) {
            return $v + $s->getMemoryUsage();
        });
    }
public function getMemoryUsage(): int
    {
        return \array_reduce($this->executedStatements, static function ($v, $s) {
            return $v + $s->getMemoryUsage();
        });
    }
public function getMemoryUsage ( ) : int { return \ array_reduce ( $ this -> executedStatements , static function ( $ v , $ s ) { return $ v + $ s -> getMemoryUsage ( ) ; } ) ; }
Returns the peak memory usage while performing statements.

@return int
Returns the peak memory usage while performing statements .