Commit cef1a45d by e0d

enabling profiling for the load test environment

parent f50e9fde
...@@ -22,6 +22,10 @@ if ["staging", "production", "loadtest", "edgestage","edgeprod"].include? enviro ...@@ -22,6 +22,10 @@ if ["staging", "production", "loadtest", "edgestage","edgeprod"].include? enviro
require 'newrelic_rpm' require 'newrelic_rpm'
end end
if ["loadtest"].include? environment
GC::Profiler.enable
end
set :cache, Dalli::Client.new set :cache, Dalli::Client.new
application_yaml = ERB.new(File.read("config/application.yml")).result() application_yaml = ERB.new(File.read("config/application.yml")).result()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment