From 1cd04412603b94f6b6b2711a603fab5801d0aeea 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 ba958c6ae10..9b468fdcd7f 100644 --- a/Gemfile +++ b/Gemfile @@ -298,7 +298,6 @@ gem 'batch-loader', '~> 1.4.0' gem 'peek', '~> 1.0.1' gem 'peek-gc', '~> 0.0.2' gem 'peek-pg', '~> 1.3.0', group: :postgres -gem 'peek-rblineprof', '~> 0.2.0' # Memory benchmarks gem 'derailed_benchmarks', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 7e26c5bbc45..b6dda9b2e99 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -648,9 +648,6 @@ GEM concurrent-ruby-ext peek pg - peek-rblineprof (0.2.0) - peek - rblineprof pg (1.1.4) po_to_json (1.0.1) json (>= 1.6.0) @@ -1185,7 +1182,6 @@ DEPENDENCIES peek (~> 1.0.1) peek-gc (~> 0.0.2) peek-pg (~> 1.3.0) - 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 f05db8376a4..5a98dc58c64 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 @@