From 66963aad70abba7a87512070047244eefefeb563 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Tue, 6 Aug 2019 19:05:47 +0100 Subject: Remove GC metrics from performance bar These were disabled in production mode, but that also broke the rest of the performance bar. As they were only enabled in development mode, we can just remove them for now. --- Gemfile | 1 - Gemfile.lock | 3 --- .../javascripts/performance_bar/components/performance_bar_app.vue | 6 ------ changelogs/unreleased/remove-peek-gc.yml | 5 +++++ config/initializers/peek.rb | 5 ----- doc/administration/monitoring/performance/performance_bar.md | 1 - 6 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 changelogs/unreleased/remove-peek-gc.yml diff --git a/Gemfile b/Gemfile index ef277336859..22746f9c5ae 100644 --- a/Gemfile +++ b/Gemfile @@ -296,7 +296,6 @@ gem 'batch-loader', '~> 1.4.0' # Perf bar gem 'peek', '~> 1.0.1' -gem 'peek-gc', '~> 0.0.2' # Memory benchmarks gem 'derailed_benchmarks', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 405814a77d9..80f36a9457c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -641,8 +641,6 @@ GEM concurrent-ruby (>= 0.9.0) concurrent-ruby-ext (>= 0.9.0) railties (>= 4.0.0) - peek-gc (0.0.2) - peek pg (1.1.4) po_to_json (1.0.1) json (>= 1.6.0) @@ -1173,7 +1171,6 @@ DEPENDENCIES omniauth_openid_connect (~> 0.3.1) org-ruby (~> 0.9.12) peek (~> 1.0.1) - peek-gc (~> 0.0.2) pg (~> 1.1) premailer-rails (~> 1.9.7) prometheus-client-mmap (~> 0.9.8) diff --git a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue index c0ea42ad1a2..13aa8844172 100644 --- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue +++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue @@ -112,12 +112,6 @@ export default { :header="metric.header" :keys="metric.keys" /> -
- - {{ currentRequest.details.gc.gc_time }}ms / {{ currentRequest.details.gc.invokes }} gc - -