diff options
author | schneems <richard.schneeman@gmail.com> | 2017-07-24 10:26:30 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2017-07-24 11:34:12 -0500 |
commit | c4a286eb73291d3af33785331941f181f11163f8 (patch) | |
tree | 37f45e791db9a01205cde26e8dd3c3039916831b /railties/lib | |
parent | 846832ae54f93a480f37a14a10874767a6330086 (diff) | |
download | rails-c4a286eb73291d3af33785331941f181f11163f8.tar.gz rails-c4a286eb73291d3af33785331941f181f11163f8.tar.bz2 rails-c4a286eb73291d3af33785331941f181f11163f8.zip |
Include rack-mini-profiler by default
I've used many development related performance tools, but the single most consistently helpful tool is `rack-mini-profiler`.
The tool provides a lightweight UI element for each page, that shows the server response time. When clicked it expands to show more detail:

This can be used to detect expensive queries, N+1 issues and general performance related problems.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index f49b503f85..f69b570db8 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -46,6 +46,8 @@ group :development do <%- else -%> gem 'web-console', '>= 3.3.0' <%- end -%> + # Display performance metrics on each page load. To configure for production read: https://github.com/MiniProfiler/rack-mini-profiler + gem 'rack-mini-profiler', '~> 0.10.5' <%- end -%> <% if depend_on_listen? -%> gem 'listen', '>= 3.0.5', '< 3.2' |