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' | ... | @@ -276,7 +276,6 @@ gem 'batch-loader', '~> 1.2.1' |
# Perf bar | # Perf bar | ||
gem 'peek', '~> 1.0.1' | gem 'peek', '~> 1.0.1' | ||
gem 'peek-gc', '~> 0.0.2' | gem 'peek-gc', '~> 0.0.2' | ||
gem 'peek-host', '~> 1.0.0' | |||
gem 'peek-mysql2', '~> 1.1.0', group: :mysql | gem 'peek-mysql2', '~> 1.1.0', group: :mysql | ||
gem 'peek-performance_bar', '~> 1.3.0' | gem 'peek-performance_bar', '~> 1.3.0' | ||
gem 'peek-pg', '~> 1.3.0', group: :postgres | gem 'peek-pg', '~> 1.3.0', group: :postgres | ||
... | ... |
lib/peek/views/host.rb
0 → 100644
Please register or sign in to comment