diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rb index 0f808362b43..30e348b65f3 100644 --- a/config/initializers/006-mini_profiler.rb +++ b/config/initializers/006-mini_profiler.rb @@ -76,6 +76,8 @@ if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config) Rack::MiniProfiler.config.backtrace_includes = [/^\/?(app|config|lib|test|plugins)/] + Rack::MiniProfiler.config.max_traces_to_show = 100 if Rails.env.development? + Rack::MiniProfiler.counter_method(Redis::Client, :call) { 'redis' } # Rack::MiniProfiler.counter_method(ActiveRecord::QueryMethods, 'build_arel') # Rack::MiniProfiler.counter_method(Array, 'uniq')