PhpSandbox\PHPSandbox::getMemoryUsage PHP Méthode

getMemoryUsage() public méthode

You can pass the number of digits you wish to round the return value
public getMemoryUsage ( integer | null $round ) : integer
$round integer | null The number of digits to round the return value
Résultat integer The amount of bytes in memory it took to prepare and execute the sandboxed code
    public function getMemoryUsage($round = 0)
    {
        return $round ? round($this->memory_usage, $round) : $this->memory_usage;
    }
PHPSandbox