summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-07-20 22:34:46 -0700
committerStan Hu <stanhu@gmail.com>2019-07-23 21:38:05 -0700
commit291df05e434f5678c47bce9521ff15748d6c767f (patch)
treea9ebe8e457d875b18998ac1a997c2faa0b1889f8 /scripts
parent4482b82687e5b647459946338686eca0b53b7ce4 (diff)
downloadgitlab-ce-291df05e434f5678c47bce9521ff15748d6c767f.tar.gz
Add Rugged calls to performance bar
This will help diagnose the source of excessive I/O from Rugged calls. To implement this, we need to obtain the full list of arguments sent to each request method.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lint-rugged4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lint-rugged b/scripts/lint-rugged
index e1605b4501b..f40f0489c1a 100755
--- a/scripts/lint-rugged
+++ b/scripts/lint-rugged
@@ -13,9 +13,11 @@ ALLOWED = [
'lib/gitlab/gitaly_client/storage_settings.rb',
# Needed for logging
+ 'config/initializers/peek.rb',
'config/initializers/lograge.rb',
'lib/gitlab/grape_logging/loggers/perf_logger.rb',
- 'lib/gitlab/rugged_instrumentation.rb'
+ 'lib/gitlab/rugged_instrumentation.rb',
+ 'lib/peek/views/rugged.rb'
].freeze
rugged_lines = IO.popen(%w[git grep -i -n rugged -- app config lib], &:read).lines