mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
Merge branch 'instrument-finders' into 'master'
See merge request !2479
This commit is contained in:
@@ -55,6 +55,12 @@ if Gitlab::Metrics.enabled?
|
||||
|
||||
config.instrument_methods(const) if const.is_a?(Module)
|
||||
end
|
||||
|
||||
Dir[Rails.root.join('app', 'finders', '*.rb')].each do |path|
|
||||
const = File.basename(path, '.rb').camelize.constantize
|
||||
|
||||
config.instrument_instance_methods(const)
|
||||
end
|
||||
end
|
||||
|
||||
GC::Profiler.enable
|
||||
|
||||
Reference in New Issue
Block a user