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
... | ... | @@ -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 | ||
... | ... |
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
lib/peek/views/host.rb
0 → 100644
vendor/assets/javascripts/peek.js
deleted
100644 → 0
Please
register
or
sign in
to comment