diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-06-07 16:56:01 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-06-07 16:56:01 +0000 |
commit | 99913b3d2ce1657a9521daa5504ee1dee002a286 (patch) | |
tree | 4d0e73909bafecdf12249a6e9070a80c92ad7f88 /config | |
parent | be78a556d9be2a553cffc68937d3ce50c15e5b9c (diff) | |
parent | d485ec9f1c7bf00a3c87e3e91b6a306f234a5232 (diff) | |
download | gitlab-ce-99913b3d2ce1657a9521daa5504ee1dee002a286.tar.gz |
Merge branch '18082-instrument-repositorycheck-singlerepositoryworker-manually' into 'master'
Instrument `RepositoryCheck::SingleRepositoryWorker` manually
See merge request !4446
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/metrics.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb index 0c788714714..2673093b96a 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/metrics.rb @@ -121,6 +121,13 @@ if Gitlab::Metrics.enabled? config.instrument_instance_methods(Gitlab::GitAccessWiki) config.instrument_instance_methods(API::Helpers) + + config.instrument_instance_methods(RepositoryCheck::SingleRepositoryWorker) + # Iterate over each non-super private instance method to keep up to date if + # internals change + RepositoryCheck::SingleRepositoryWorker.private_instance_methods(false).each do |method| + config.instrument_instance_method(RepositoryCheck::SingleRepositoryWorker, method) + end end GC::Profiler.enable |