diff options
author | Aleksei Lipniagov <alipniagov@gitlab.com> | 2019-06-25 15:11:06 +0300 |
---|---|---|
committer | Aleksei Lipniagov <alipniagov@gitlab.com> | 2019-06-28 13:49:57 +0300 |
commit | fb1d433703f902987a358af0d9cac12b64ec440e (patch) | |
tree | 8caf42f0323a3137747b87a6a93637dd736b0b15 /config/boot.rb | |
parent | 5ee5b280b05f63768f359d0b82d5edd490c0e7cd (diff) |
Get memory data after booting app in production
Preload the app in `production` env, hit it with a single request, and
gather total gem memory consumption data using `derailed exec perf:mem`
from `derailed_benchmarks`. Present the result as MR metrics.
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/boot.rb b/config/boot.rb index 2811f0e6188..b76b26a5e75 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -3,7 +3,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) # Set up gems listed in the Gemfile. require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) begin - require 'bootsnap/setup' + require 'bootsnap/setup' unless ENV['DISABLE_BOOTSNAP'] rescue LoadError # bootsnap is an optional dependency, so if we don't have it, it's fine end |