Skip to content

Commit 8dc74fd

Browse files
authored
Add rack-mini-profiler gem (#4956)
1 parent 7db69a4 commit 8dc74fd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ group :development do
184184
gem "rails-erd"
185185
# Allows to create a console in the browser.
186186
gem "web-console"
187+
# Middleware that displays speed badge for every HTML page
188+
gem "rack-mini-profiler"
189+
# Adds memory profiling to rack-mini-profiler
190+
gem "memory_profiler"
191+
# Adds call-stack profiling flamegraphs to rack-mini-profiler
192+
gem "stackprof"
187193
end
188194

189195
group :test do

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ GEM
370370
net-smtp
371371
marcel (1.0.4)
372372
matrix (0.4.2)
373+
memory_profiler (1.1.0)
373374
method_source (1.1.0)
374375
mini_magick (4.13.2)
375376
mini_mime (1.1.5)
@@ -494,6 +495,8 @@ GEM
494495
nio4r (~> 2.0)
495496
racc (1.8.1)
496497
rack (3.1.8)
498+
rack-mini-profiler (3.3.1)
499+
rack (>= 1.2.0)
497500
rack-protection (4.0.0)
498501
base64 (>= 0.1.0)
499502
rack (>= 3.0.0, < 4)
@@ -657,6 +660,7 @@ GEM
657660
actionpack (>= 5.2)
658661
activesupport (>= 5.2)
659662
sprockets (>= 3.0.0)
663+
stackprof (0.2.27)
660664
standard (1.43.0)
661665
language_server-protocol (~> 3.17.0.2)
662666
lint_roller (~> 1.0)
@@ -775,6 +779,7 @@ DEPENDENCIES
775779
lograge
776780
magic_test
777781
matrix
782+
memory_profiler
778783
money-rails
779784
newrelic_rpm
780785
nokogiri (>= 1.10.4)
@@ -791,6 +796,7 @@ DEPENDENCIES
791796
pry-rails
792797
pry-remote
793798
puma
799+
rack-mini-profiler
794800
rails (= 7.2.2)
795801
rails-controller-testing
796802
rails-erd
@@ -806,6 +812,7 @@ DEPENDENCIES
806812
simplecov
807813
solid_cache (~> 1.0)
808814
sprockets (~> 4.2.1)
815+
stackprof
809816
standard (~> 1.40)
810817
standard-performance
811818
standard-rails

0 commit comments

Comments
 (0)