Glimpse::PerformanceBar
Provide a glimpse into window.performance
timing.
Things this glimpse view provides:
- Frontend
- Latency / Receiving
- Backend
- TCP / SSL
- Redirect
- DNS Lookup
Installation
Add this line to your application's Gemfile:
gem 'glimpse-performance_bar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install glimpse-performance_bar
Usage
Add the following to your config/initializers/glimpse.rb
:
Glimpse.into Glimpse::Views::PerformanceBar
You'll then need to add the following CSS and CoffeeScript:
CSS:
//= require glimpse
//= require glimpse/views/performance_bar
CoffeeScript:
#= require glimpse
#= require glimpse/views/performance_bar
Lastly this view requires you insert an additional partial after the glimpse/results
:
...
<%= yield %>
<%= render 'glimpse/results' %>
<%= render 'glimpse/results/performance_bar' %>
...
Contributors
- @josh - The original implementation.
- @tmm1 - The original implementation.
- @rtomayko - The original implementation.
- @kneath - The original implementation.
- @dewski - Just the extractor.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request