-
- Downloads
Show Ajax requests in performance bar
But first, rewrite the performance bar in Vue: 1. Remove the peek-host gem and replace it with existing code. This also allows us to include the host in the JSON response, rather than in the page HTML. 2. Leave the line profiler parts as here-be-dragons: nicer would be a separate endpoint for these, so we could use them on Ajax requests too. 3. The performance bar is too fiddly to rewrite right now, so apply the same logic to that. Then, add features! All requests made through Axios are able to be tracked. To keep a lid on memory usage, only the first two requests for a given URL are tracked, though. Each request that's tracked has the same data as the initial page load, with the exception of the performance bar and the line profiler, as explained above.
Showing
- Gemfile 0 additions, 1 deletionGemfile
- Gemfile.lock 0 additions, 3 deletionsGemfile.lock
- app/assets/javascripts/dispatcher.js 8 additions, 4 deletionsapp/assets/javascripts/dispatcher.js
- app/assets/javascripts/performance_bar.js 0 additions, 57 deletionsapp/assets/javascripts/performance_bar.js
- app/assets/javascripts/performance_bar/components/detailed_metric.vue 78 additions, 0 deletions...avascripts/performance_bar/components/detailed_metric.vue
- app/assets/javascripts/performance_bar/components/performance_bar_app.vue 191 additions, 0 deletions...cripts/performance_bar/components/performance_bar_app.vue
- app/assets/javascripts/performance_bar/components/request_selector.vue 52 additions, 0 deletions...vascripts/performance_bar/components/request_selector.vue
- app/assets/javascripts/performance_bar/components/simple_metric.vue 30 additions, 0 deletions.../javascripts/performance_bar/components/simple_metric.vue
- app/assets/javascripts/performance_bar/components/upstream_performance_bar.vue 18 additions, 0 deletions...s/performance_bar/components/upstream_performance_bar.vue
- app/assets/javascripts/performance_bar/index.js 37 additions, 0 deletionsapp/assets/javascripts/performance_bar/index.js
- app/assets/javascripts/performance_bar/services/performance_bar_service.js 24 additions, 0 deletions...ripts/performance_bar/services/performance_bar_service.js
- app/assets/javascripts/performance_bar/stores/performance_bar_store.js 39 additions, 0 deletions...vascripts/performance_bar/stores/performance_bar_store.js
- app/assets/stylesheets/performance_bar.scss 23 additions, 6 deletionsapp/assets/stylesheets/performance_bar.scss
- app/views/peek/_bar.html.haml 12 additions, 0 deletionsapp/views/peek/_bar.html.haml
- app/views/peek/views/_gitaly.html.haml 0 additions, 17 deletionsapp/views/peek/views/_gitaly.html.haml
- app/views/peek/views/_host.html.haml 0 additions, 2 deletionsapp/views/peek/views/_host.html.haml
- app/views/peek/views/_mysql2.html.haml 0 additions, 4 deletionsapp/views/peek/views/_mysql2.html.haml
- app/views/peek/views/_pg.html.haml 0 additions, 4 deletionsapp/views/peek/views/_pg.html.haml
- app/views/peek/views/_rblineprof.html.haml 0 additions, 7 deletionsapp/views/peek/views/_rblineprof.html.haml
- app/views/peek/views/_sql.html.haml 0 additions, 14 deletionsapp/views/peek/views/_sql.html.haml
Loading
| Loading
| @@ -276,7 +276,6 @@ gem 'batch-loader', '~> 1.2.1' |
# Perf bar | ||
gem 'peek', '~> 1.0.1' | ||
gem 'peek-gc', '~> 0.0.2' | ||
gem 'peek-host', '~> 1.0.0' | ||
gem 'peek-mysql2', '~> 1.1.0', group: :mysql | ||
gem 'peek-performance_bar', '~> 1.3.0' | ||
gem 'peek-pg', '~> 1.3.0', group: :postgres | ||
Loading
| Loading
|
app/views/peek/_bar.html.haml
0 → 100644
app/views/peek/views/_host.html.haml
deleted
100644 → 0
app/views/peek/views/_pg.html.haml
deleted
100644 → 0
app/views/peek/views/_sql.html.haml
deleted
100644 → 0
Please register or sign in to comment