Skip to content
Snippets Groups Projects
Commit 33fb55a5 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Instrument various Rugged constants

parent 1256dabb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment