Merge branch '18082-instrument-repositorycheck-singlerepositoryworker-manually' into 'master'

Instrument `RepositoryCheck::SingleRepositoryWorker` manually

See merge request !4446
This commit is contained in:
Yorick Peterse 2016-06-07 16:56:01 +00:00
commit 99913b3d2c
2 changed files with 8 additions and 0 deletions

View file

@ -43,6 +43,7 @@ v 8.9.0 (unreleased)
- Put project Files and Commits tabs under Code tab
- Replace Colorize with Rainbow for coloring console output in Rake tasks.
- An indicator is now displayed at the top of the comment field for confidential issues.
- RepositoryCheck::SingleRepositoryWorker public and private methods are now instrumented
v 8.8.4 (unreleased)
- Ensure branch cleanup regardless of whether the GitHub import process succeeds

View file

@ -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