summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-10 12:04:30 -0700
committerStan Hu <stanhu@gmail.com>2019-04-10 12:06:07 -0700
commitb397ad8a6909ca21631dae5aae5e4a3373b5f2aa (patch)
tree50c456d4f63cb6ee10880f2fdb0075297b2f0c55 /config
parentddab30ad3561c6834fd779458ce89084c8a95ca5 (diff)
downloadgitlab-ce-b397ad8a6909ca21631dae5aae5e4a3373b5f2aa.tar.gz
Disable method instrumentation for diffs
When there a large number of discussions on diffs, the instrumentation has a significant impact on performance since it's often run in a tight loop for line position calculation etc. We should disable this since there are other ways to benchmark performance. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52898
Diffstat (limited to 'config')
-rw-r--r--config/initializers/zz_metrics.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/config/initializers/zz_metrics.rb b/config/initializers/zz_metrics.rb
index 151cad3ef9a..5aa6f73c5c5 100644
--- a/config/initializers/zz_metrics.rb
+++ b/config/initializers/zz_metrics.rb
@@ -30,7 +30,6 @@ def instrument_classes(instrumentation)
# are included.
%w(app services [^concerns]**) => %w(app services),
%w(lib gitlab conflicts) => ['lib'],
- %w(lib gitlab diff) => ['lib'],
%w(lib gitlab email message) => ['lib'],
%w(lib gitlab checks) => ['lib']
}