class BenchmarkMemoryException extends RuntimeException

Exception thrown when the benchmark command runs out of memory.

This exception is thrown proactively before PHP's fatal memory error, allowing the benchmark to fail gracefully with actionable guidance.

Methods

__construct(int $currentUsageBytes, int $limitBytes, int $usagePercent)

Create a new benchmark memory exception instance.

Details

at line 20
__construct(int $currentUsageBytes, int $limitBytes, int $usagePercent)

Create a new benchmark memory exception instance.

Parameters

int $currentUsageBytes
int $limitBytes
int $usagePercent