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
1 merge request!2664Expand Git instrumentation
Pipeline #
Loading
@@ -64,6 +64,16 @@ if Gitlab::Metrics.enabled?
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment