Instrument various Rugged constants

This commit is contained in:
Yorick Peterse
2016-02-01 15:03:58 +01:00
parent 1256dabb44
commit 33fb55a572
+10
View File
@@ -64,6 +64,16 @@ if Gitlab::Metrics.enabled?
config.instrument_instance_methods(const)
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
GC::Profiler.enable