diff --git a/Gemfile b/Gemfile index 175062e06..870831c9c 100644 --- a/Gemfile +++ b/Gemfile @@ -160,11 +160,11 @@ gem "omniauth_openid_connect", "~> 0.8.0" gem "sidekiq-cron", "~> 2.0" group :development, :production do + gem "sys-cpu", "~> 1.1" + gem "get_process_mem", "~> 1.0" gem "rails_performance", "~> 1.4" gem "redis-namespace" end gem "pghero", "~> 3.6" gem "pg_query", "~> 5.1" - -gem "get_process_mem", "~> 1.0" diff --git a/Gemfile.lock b/Gemfile.lock index 1ec760964..a94b98c47 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -687,6 +687,8 @@ GEM attr_required (>= 0.0.5) faraday (~> 2.0) faraday-follow_redirects + sys-cpu (1.1.0) + ffi (~> 1.1) sys-filesystem (1.5.3) ffi (~> 1.1) terminal-table (3.0.2) @@ -826,6 +828,7 @@ DEPENDENCIES standard (~> 1.42.1) stopwords-filter2 string-similarity (~> 2.1) + sys-cpu (~> 1.1) sys-filesystem (~> 1.5) translation (~> 1.41) tzinfo-data diff --git a/config/initializers/rails_performance.rb b/config/initializers/rails_performance.rb index 69192fda9..c1200d576 100644 --- a/config/initializers/rails_performance.rb +++ b/config/initializers/rails_performance.rb @@ -17,12 +17,8 @@ # config.slow_requests_threshold = 500 # number of ms # store custom data for the request - config.custom_data_proc = proc do |env| - { - pid: Process.pid, - memory_usage: GetProcessMem.new.bytes - } - end + # config.custom_data_proc = proc do |env| + # end # config home button link config.home_link = "/"