From: Isaac Sanders Date: 2011-11-29T11:57:07+09:00 Subject: Re: Ruby Code help --20cf30549ced35cd8104b2d6c607 Content-Type: text/plain; charset=ISO-8859-1 You can use GC.stat to check it in 1.9.3 On Mon, Nov 28, 2011 at 9:45 PM, Eric Christopherson < echristopherson@gmail.com> wrote: > On Mon, Nov 28, 2011 at 7:47 PM, Tridib Bandopadhyay > wrote: > > I am trying to print out the Garbage Collection behavior. I tried the > > following code:-- > > > > include ObjectSpace > > puts ObjectSpace.statistics > > > > but its giving me an error like this:-- > > > > runtest.rb:6: undefined method `statistics' for ObjectSpace:Module > > (NoMethodError) > > > > Any suggestion.. How can i print the Garbage collector Behavior? > > ObjectSpace.statistics is only provided by Ruby Enterprise Edition, not > MRI. > > http://www.rubyenterpriseedition.com/index.html > > -- Sincerely, Isaac Sanders --20cf30549ced35cd8104b2d6c607--