diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-01 15:03:58 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-01 15:03:58 +0100 |
commit | 33fb55a572364feca70fcc0f15b80da6176f4d71 (patch) | |
tree | f3239e7be03ab31c0c11d76cd8a0b2a7ad7e99f9 /config/initializers/metrics.rb | |
parent | 1256dabb445211fe48f1d53cc5be15ad99793178 (diff) | |
download | gitlab-ce-33fb55a572364feca70fcc0f15b80da6176f4d71.tar.gz |
Instrument various Rugged constantsexpand-git-instrumentation
Diffstat (limited to 'config/initializers/metrics.rb')
-rw-r--r-- | config/initializers/metrics.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb index e69552631ff..3e1deb8d306 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/metrics.rb @@ -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 |