DEV: update rack-mini-profiler (#11597)

Included support for flamegraphs using speedscope!
This commit is contained in:
Sam 2020-12-29 13:54:41 +11:00 committed by GitHub
parent 5a0c8f2b34
commit c3fedae73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -192,7 +192,6 @@ gem 'htmlentities', require: false
# 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
gem 'flamegraph', require: false
gem 'rack-mini-profiler', require: ['enable_rails_patches']
gem 'unicorn', require: false, platform: :ruby

View File

@ -133,7 +133,6 @@ GEM
fast_xs (0.8.0)
fastimage (2.2.0)
ffi (1.14.2)
flamegraph (0.9.5)
fspath (3.1.2)
gc_tracer (1.5.1)
globalid (0.4.2)
@ -265,7 +264,7 @@ GEM
nio4r (~> 2.0)
r2 (0.2.7)
rack (2.2.3)
rack-mini-profiler (2.2.1)
rack-mini-profiler (2.3.0)
rack (>= 1.2.0)
rack-protection (2.1.0)
rack
@ -472,7 +471,6 @@ DEPENDENCIES
fast_blank
fast_xs
fastimage
flamegraph
gc_tracer
highline
htmlentities
@ -559,4 +557,4 @@ DEPENDENCIES
yaml-lint
BUNDLED WITH
2.1.4
2.2.2

View File

@ -3,7 +3,7 @@
# If Mini Profiler is included via gem
if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.load_mini_profiler
require 'rack-mini-profiler'
require 'flamegraph'
require 'stackprof'
begin
require 'memory_profiler'