OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/config/initializers/rack_profiler.rb

12 lines
338 B

# frozen_string_literal: true
if Rails.env.development? && ENV['OPENPROJECT_RACK_PROFILER_ENABLED']
require "rack-mini-profiler"
require 'flamegraph'
require 'stackprof'
# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)
Rack::MiniProfiler.config.position = 'bottom-right'
end