diff options
author | Maxwell Salzberg <maxwell@joindiaspora.com> | 2012-01-05 10:28:18 +0400 |
---|---|---|
committer | Maxwell Salzberg <maxwell@joindiaspora.com> | 2012-01-05 10:28:18 +0400 |
commit | 9cdfea02b0cfb4bae3b270f23122d07cba5480b9 (patch) | |
tree | ad3d722f8a45f21b73bc3b75b3b4b3149952a9f9 /config/environments | |
parent | 7cc6e3ed688e95696a3334dbed327e35ce4190df (diff) |
add the GC profiling option for newrelic for 1.9.2; see: http://newrelic.com/docs/ruby/ruby-gc-instrumentation
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |