add the GC profiling option for newrelic for 1.9.2; see: http://newrelic.com/docs/ruby/ruby-gc-instrumentation

This commit is contained in:
Maxwell Salzberg 2012-01-04 22:28:18 -08:00
parent 7cc6e3ed68
commit 9cdfea02b0

View file

@ -52,3 +52,4 @@ end
# Sacrifice readability for a 10% performance boost
Haml::Template::options[:ugly] = true
GC.enable_stats if GC.respond_to?(:enable_stats)
GC::Profiler.enable if defined?(GC::Profiler) && GC::Profiler.respond_to?(:enable)