mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 22:52:05 +08:00
Remove memory profiler at least until I push a new docker image
This commit is contained in:
parent
d3b8ec36d0
commit
212ece3e80
5
Gemfile
5
Gemfile
|
@ -196,11 +196,6 @@ gem 'lru_redux'
|
||||||
|
|
||||||
gem 'flamegraph', require: false
|
gem 'flamegraph', require: false
|
||||||
gem 'rack-mini-profiler', require: false
|
gem 'rack-mini-profiler', require: false
|
||||||
begin
|
|
||||||
gem 'memory_profiler', require: false, platform: :mri_21
|
|
||||||
rescue
|
|
||||||
puts "WARNING: you are running an old version of bundler, please run 'gem update bundler'"
|
|
||||||
end
|
|
||||||
|
|
||||||
# used for caching, optional
|
# used for caching, optional
|
||||||
gem 'rack-cors', require: false
|
gem 'rack-cors', require: false
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
if Rails.configuration.respond_to?(:enable_mini_profiler) && Rails.configuration.enable_mini_profiler
|
if Rails.configuration.respond_to?(:enable_mini_profiler) && Rails.configuration.enable_mini_profiler
|
||||||
require 'rack-mini-profiler'
|
require 'rack-mini-profiler'
|
||||||
require 'flamegraph'
|
require 'flamegraph'
|
||||||
require 'memory_profiler' if RUBY_VERSION >= "2.1.0"
|
|
||||||
# initialization is skipped so trigger it
|
# initialization is skipped so trigger it
|
||||||
Rack::MiniProfilerRails.initialize!(Rails.application)
|
Rack::MiniProfilerRails.initialize!(Rails.application)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user