Skip to content

Commit b50aa3a

Browse files
committed
Fixes #36898 - add rack-mini-profiler
1 parent fa79806 commit b50aa3a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

bundler.d/profiling.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
group :development do
2+
gem 'rack-mini-profiler'
3+
4+
# For memory profiling
5+
gem 'memory_profiler'
6+
7+
# For call-stack profiling flamegraphs
8+
gem 'stackprof'
9+
end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if defined? Rack::MiniProfiler
2+
# enable profiling for all pages; per-default it is disabled on production-env
3+
Rack::MiniProfiler.config.authorization_mode = :allow_all
4+
5+
# enable additional profiling-features
6+
Rack::MiniProfiler.config.enable_advanced_debugging_tools = true
7+
end

0 commit comments

Comments
 (0)