From c4a286eb73291d3af33785331941f181f11163f8 Mon Sep 17 00:00:00 2001 From: schneems Date: Mon, 24 Jul 2017 10:26:30 -0500 Subject: 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: ![](https://www.dropbox.com/s/0aciw4mk8c059n0/Screenshot%202017-07-24%2010.24.24.png?dl=1) This can be used to detect expensive queries, N+1 issues and general performance related problems. --- railties/lib/rails/generators/rails/app/templates/Gemfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/lib') 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' -- cgit v1.2.3