J
jonT
Hi,
I'm trying to write a queue that is memory limited to foo, i.e. if you
add items that push the queue size > foo, then it drops items off the
end until the memory size drops under foo.
Is there any way in Ruby of obtaining either an Array or Object's
memory use, or failing that, any objective metric that'll do instead?
Cheers,
jonT
I'm trying to write a queue that is memory limited to foo, i.e. if you
add items that push the queue size > foo, then it drops items off the
end until the memory size drops under foo.
Is there any way in Ruby of obtaining either an Array or Object's
memory use, or failing that, any objective metric that'll do instead?
Cheers,
jonT