memory_profiler should be shipped with mini profiler
This commit is contained in:
parent
fbda9cac69
commit
31c575687b
1
Gemfile
1
Gemfile
|
@ -221,6 +221,7 @@ gem 'ruby-readability', require: false
|
||||||
gem 'simple-rss', require: false
|
gem 'simple-rss', require: false
|
||||||
gem 'gctools', require: false, platform: :mri_21
|
gem 'gctools', require: false, platform: :mri_21
|
||||||
gem 'stackprof', require: false, platform: :mri_21
|
gem 'stackprof', require: false, platform: :mri_21
|
||||||
|
gem 'memory_profiler', require: false, platform: :mri_21
|
||||||
|
|
||||||
# This silly path comment just makes it easier for me to do dev
|
# This silly path comment just makes it easier for me to do dev
|
||||||
# will be removed in a few weeks
|
# will be removed in a few weeks
|
||||||
|
|
|
@ -155,6 +155,7 @@ GEM
|
||||||
mail (2.5.4)
|
mail (2.5.4)
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
|
memory_profiler (0.0.4)
|
||||||
message_bus (0.9.4)
|
message_bus (0.9.4)
|
||||||
eventmachine
|
eventmachine
|
||||||
rack (>= 1.1.3)
|
rack (>= 1.1.3)
|
||||||
|
@ -418,6 +419,7 @@ DEPENDENCIES
|
||||||
listen (= 0.7.3)
|
listen (= 0.7.3)
|
||||||
logster
|
logster
|
||||||
lru_redux
|
lru_redux
|
||||||
|
memory_profiler
|
||||||
message_bus
|
message_bus
|
||||||
minitest
|
minitest
|
||||||
mocha
|
mocha
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
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