twitter/rubyenterpriseedition187-248 — Issue #5: NoMethodError: undefined method `enable_stats' for GC:Module
Author: diclophis
Created: 2011-10-10 22:32:03+00:00
State: open

I don't think the rvm installable version of "kiji-head" includes the GC.enable_stats patch.

The function is defined in intern.h but it does not look like there is an implementation in gc.c.

Is this missing on purpose? and is it possible to re-apply the GC stats patch to add GC.enable_stats functionality into the kiji interpreter?

This is important to the project I am working on, as we rely heavily on RPM(newrelic) reporting to gauge the performance of our application. So, while it would appear that some of our actions run faster with "kiji", I fear that we are just losing the tracking on the GC time, and its not getting calculated at all.

Below is some output from my irb session:

$ which irb
~/.rvm/rubies/kiji-head/bin/irb
$ irb
kiji-head :001 > GC.enable_stats
NoMethodError: undefined method `enable_stats' for GC:Module
from (irb):1