mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: Increase number of mini-profiler traces in development.
Assets are served via the server in development and the default 20 traces is too little for the number of assets we load in development.
This commit is contained in:
parent
a5df693697
commit
fbfd54a941
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user