mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 18:18:33 +08:00
DEV: update rack-mini-profiler (#11597)
Included support for flamegraphs using speedscope!
This commit is contained in:
parent
5a0c8f2b34
commit
c3fedae73a
1
Gemfile
1
Gemfile
|
@ -192,7 +192,6 @@ gem 'htmlentities', require: false
|
||||||
# If you want to amend mini profiler to do the monkey patches in the railties
|
# If you want to amend mini profiler to do the monkey patches in the railties
|
||||||
# we are open to it. by deferring require to the initializer we can configure discourse installs without it
|
# we are open to it. by deferring require to the initializer we can configure discourse installs without it
|
||||||
|
|
||||||
gem 'flamegraph', require: false
|
|
||||||
gem 'rack-mini-profiler', require: ['enable_rails_patches']
|
gem 'rack-mini-profiler', require: ['enable_rails_patches']
|
||||||
|
|
||||||
gem 'unicorn', require: false, platform: :ruby
|
gem 'unicorn', require: false, platform: :ruby
|
||||||
|
|
|
@ -133,7 +133,6 @@ GEM
|
||||||
fast_xs (0.8.0)
|
fast_xs (0.8.0)
|
||||||
fastimage (2.2.0)
|
fastimage (2.2.0)
|
||||||
ffi (1.14.2)
|
ffi (1.14.2)
|
||||||
flamegraph (0.9.5)
|
|
||||||
fspath (3.1.2)
|
fspath (3.1.2)
|
||||||
gc_tracer (1.5.1)
|
gc_tracer (1.5.1)
|
||||||
globalid (0.4.2)
|
globalid (0.4.2)
|
||||||
|
@ -265,7 +264,7 @@ GEM
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
r2 (0.2.7)
|
r2 (0.2.7)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-mini-profiler (2.2.1)
|
rack-mini-profiler (2.3.0)
|
||||||
rack (>= 1.2.0)
|
rack (>= 1.2.0)
|
||||||
rack-protection (2.1.0)
|
rack-protection (2.1.0)
|
||||||
rack
|
rack
|
||||||
|
@ -472,7 +471,6 @@ DEPENDENCIES
|
||||||
fast_blank
|
fast_blank
|
||||||
fast_xs
|
fast_xs
|
||||||
fastimage
|
fastimage
|
||||||
flamegraph
|
|
||||||
gc_tracer
|
gc_tracer
|
||||||
highline
|
highline
|
||||||
htmlentities
|
htmlentities
|
||||||
|
@ -559,4 +557,4 @@ DEPENDENCIES
|
||||||
yaml-lint
|
yaml-lint
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.1.4
|
2.2.2
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# If Mini Profiler is included via gem
|
# If Mini Profiler is included via gem
|
||||||
if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.load_mini_profiler
|
if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.load_mini_profiler
|
||||||
require 'rack-mini-profiler'
|
require 'rack-mini-profiler'
|
||||||
require 'flamegraph'
|
require 'stackprof'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'memory_profiler'
|
require 'memory_profiler'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user