Commit 33fb55a5 authored by Yorick Peterse's avatar Yorick Peterse

Instrument various Rugged constants

parent 1256dabb
...@@ -64,6 +64,16 @@ if Gitlab::Metrics.enabled? ...@@ -64,6 +64,16 @@ if Gitlab::Metrics.enabled?
config.instrument_instance_methods(const) config.instrument_instance_methods(const)
end end
[
:Blame, :Branch, :BranchCollection, :Blob, :Commit, :Diff, :Repository,
:Tag, :TagCollection, :Tree
].each do |name|
const = Rugged.const_get(name)
config.instrument_methods(const)
config.instrument_instance_methods(const)
end
end end
GC::Profiler.enable GC::Profiler.enable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment