On 9/20/12, Charles Oliver Nutter <headius / headius.com> 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-