Skip to content

Commit

Permalink
Fixes #36898 - add rack-mini-profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Nov 7, 2023
1 parent fa79806 commit b50aa3a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bundler.d/profiling.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
group :development do
gem 'rack-mini-profiler'

# For memory profiling
gem 'memory_profiler'

# For call-stack profiling flamegraphs
gem 'stackprof'
end
7 changes: 7 additions & 0 deletions config/initializers/rack_mini_profiler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if defined? Rack::MiniProfiler
# enable profiling for all pages; per-default it is disabled on production-env
Rack::MiniProfiler.config.authorization_mode = :allow_all

# enable additional profiling-features
Rack::MiniProfiler.config.enable_advanced_debugging_tools = true
end

0 comments on commit b50aa3a

Please sign in to comment.