Add 'sdk/java-v2/' from commit '55f103e336ca9fb8bf1720d2ef4ee8dd4e221118'
[arvados.git] / apps / workbench / config / initializers / rack_mini_profile.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 if not Rails.env.production? and ENV['ENABLE_PROFILING']
6   require 'rack-mini-profiler'
7   require 'flamegraph'
8   Rack::MiniProfilerRails.initialize! Rails.application
9 end