You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with -vvvv phpstan prints roughly how much memory it uses, and with
parameters:
parallel:
maximumNumberOfProcesses: 1
the figure is pretty much accurate and agrees with how much ram htop says its using, but on multi-core systems without maximumNumberOfProcesses: 1 , the figure is not even remotely accurate, like on my 12-core system (dual Xeon X5670, hyperthreading disabled) phpstan was reporting like 800MB ram usage while the real ram usage was closer to 10GB - i suspect phpstan is only reporting the ram usage of the very first worker, rather than summing up the combined ram of all the workers?
Code snippet that reproduces the problem
the actual command i was using when noticing the problem was
Bug report
with -vvvv phpstan prints roughly how much memory it uses, and with
the figure is pretty much accurate and agrees with how much ram htop says its using, but on multi-core systems without
maximumNumberOfProcesses: 1
, the figure is not even remotely accurate, like on my 12-core system (dual Xeon X5670, hyperthreading disabled) phpstan was reporting like 800MB ram usage while the real ram usage was closer to 10GB - i suspect phpstan is only reporting the ram usage of the very first worker, rather than summing up the combined ram of all the workers?Code snippet that reproduces the problem
the actual command i was using when noticing the problem was
and phpstan.neon contained
and the EAD folder is a large ~14,000 php files proprietary codebase, cannot share it
Expected output
the memory usage should be roughly accurate?
Did PHPStan help you today? Did it make you happy in any way?
judge is still out, but it looks promising ^^
The text was updated successfully, but these errors were encountered: