From: Roger Pack Date: 2013-01-10T23:28:53+09:00 Subject: [ruby-core:51359] Re: [ruby-trunk - Feature #7022] add event hook for garbage collection On 9/20/12, Charles Oliver Nutter wrote: > I looked into this on JRuby/JVM last night, and found that they have > recently added a nonstandard API for getting GC notifications as they > happen. And they happen *after* the GC has occurred. They're > informational. Sweet that's what I have been looking for. > > Would be neat to have something standard in Ruby...especially now that > I know we can implement it (on Java 7u4+ anyway). > > FWIW, here's a gist I posted last night that implements > GC::Profiler.report entirely in Ruby using the JVM APIs: > > https://gist.github.com/3754108 It might be interesting to try and integrate the ruby-prof gem more with native jruby sometime. Cheers! -roger-