From 9cdfea02b0cfb4bae3b270f23122d07cba5480b9 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Wed, 4 Jan 2012 22:28:18 -0800 Subject: [PATCH] add the GC profiling option for newrelic for 1.9.2; see: http://newrelic.com/docs/ruby/ruby-gc-instrumentation --- config/environments/production.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 772b71d57..e0a9f8f1b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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)