This commit is contained in:
Guo Xiang Tan 2016-07-01 01:21:40 +08:00
parent b66fc72c18
commit 42ce59d257
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 6 additions and 1 deletions

View File

@ -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)