mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:04:03 +08:00
Partially revert https://github.com/discourse/discourse/commit/09b92dd3.
This commit is contained in:
parent
b66fc72c18
commit
42ce59d257
|
@ -2,7 +2,12 @@
|
|||
if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.load_mini_profiler
|
||||
require 'rack-mini-profiler'
|
||||
require 'flamegraph'
|
||||
require 'memory_profiler'
|
||||
|
||||
begin
|
||||
require 'memory_profiler'
|
||||
rescue => e
|
||||
STDERR.put "#{e} failed to require mini profiler"
|
||||
end
|
||||
|
||||
# initialization is skipped so trigger it
|
||||
Rack::MiniProfilerRails.initialize!(Rails.application)
|
||||
|
|
Loading…
Reference in New Issue
Block a user