-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Report 1/2 memory #8
Comments
Any idea how to spoof memory_get_peak_usage() ? ^^ |
You could use [runkit]
extension="/usr/local/opt/php55-runkit/runkit.so"
runkit.internal_override = On Result: php > var_dump(memory_get_peak_usage());
int(236288)
php > runkit_function_copy('memory_get_peak_usage', 'memory_get_peak_usage_old');
php > runkit_function_redefine('memory_get_peak_usage', '', 'return (memory_get_peak_usage_old() / 2);');
php > var_dump(memory_get_peak_usage());
int(122432) Ref: |
+1 my job depends on this |
The moment you install the runkit extension you loose the battle ! |
We will not say how I know this, but you can manipulate the literal text of PHPUnit using |
Please have PHPUnit report half the amount of actual memory used in the CI environment ;-)
The text was updated successfully, but these errors were encountered: