From 18cdc5ba6ce1810c19982475eca89fd385fe31e2 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 24 Jul 2019 12:37:05 +0100 Subject: Remove line profiler from performance bar 1. The output isn't great. It can be hard to find hotspots and, even when you do find them, to find why those are hotspots. 2. It uses some jQuery-specific frontend code which we can remove now that we don't have this any more. 3. It's only possible to profile the initial request, not any subsequent AJAX requests. --- Gemfile | 1 - Gemfile.lock | 4 - .../components/performance_bar_app.vue | 23 ---- app/assets/stylesheets/performance_bar.scss | 11 -- app/controllers/concerns/with_performance_bar.rb | 4 - app/views/peek/_bar.html.haml | 3 +- .../remove-line-profile-from-performance-bar.yml | 5 + config/initializers/peek.rb | 1 - .../monitoring/performance/img/performance_bar.png | Bin 127198 -> 113617 bytes .../img/performance_bar_line_profiling.png | Bin 93063 -> 0 bytes .../monitoring/performance/performance_bar.md | 2 - lib/peek/rblineprof/custom_controller_helpers.rb | 124 --------------------- lib/peek/views/redis_detailed.rb | 2 +- locale/gitlab.pot | 3 - vendor/licenses.csv | 1 - 15 files changed, 7 insertions(+), 177 deletions(-) create mode 100644 changelogs/unreleased/remove-line-profile-from-performance-bar.yml delete mode 100644 doc/administration/monitoring/performance/img/performance_bar_line_profiling.png delete mode 100644 lib/peek/rblineprof/custom_controller_helpers.rb diff --git a/Gemfile b/Gemfile index d7bc8e1a749..61a6432a953 100644 --- a/Gemfile +++ b/Gemfile @@ -297,7 +297,6 @@ gem 'batch-loader', '~> 1.4.0' # Perf bar gem 'peek', '~> 1.0.1' gem 'peek-gc', '~> 0.0.2' -gem 'peek-rblineprof', '~> 0.2.0' # Memory benchmarks gem 'derailed_benchmarks', require: false diff --git a/Gemfile.lock b/Gemfile.lock index f9f6616bad2..45f1464a5b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -643,9 +643,6 @@ GEM railties (>= 4.0.0) peek-gc (0.0.2) peek - peek-rblineprof (0.2.0) - peek - rblineprof pg (1.1.4) po_to_json (1.0.1) json (>= 1.6.0) @@ -1177,7 +1174,6 @@ DEPENDENCIES org-ruby (~> 0.9.12) peek (~> 1.0.1) peek-gc (~> 0.0.2) - peek-rblineprof (~> 0.2.0) 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 769ddb21277..c0ea42ad1a2 100644 --- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue +++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue @@ -1,5 +1,4 @@