I’ve written a little while loop program in ruby and I can see the RAM it use is visibly growing after each loop !
So I trayed to :
- Use
GC.Startat the end of the loop but it has no effects - Change all inside loop variable to Global but memory used still raise after each loop.
So is there any equivalent of PHP’s “get_defined_vars” function in Ruby in order to view wich make my used memory growing like that ?
Kernel.local_variablesseems to be the closest match