summaryrefslogtreecommitdiff
path: root/spec/initializers
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-06-14 12:01:38 +0100
committerSean McGivern <sean@gitlab.com>2017-06-14 12:01:38 +0100
commit54c0c0cd170f6c4be8242428f409950e16fcea91 (patch)
treeb5ee1998d4c81fcdb7eeb9280ad7990dc9331084 /spec/initializers
parentfbfddd99d6a4846e807dc8c2dadd64d3d120fb23 (diff)
downloadgitlab-ce-54c0c0cd170f6c4be8242428f409950e16fcea91.tar.gz
Instrument MergeRequestDiff#load_commitsinstrument-merge-request-diff-load-commits
This instrumentation isn't needed strictly for performance measurements, but just to see which controller actions call this method at all. See <https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159> for more details.
Diffstat (limited to 'spec/initializers')
-rw-r--r--spec/initializers/8_metrics_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/initializers/8_metrics_spec.rb b/spec/initializers/8_metrics_spec.rb
index 570754621f3..a507d7f7f2b 100644
--- a/spec/initializers/8_metrics_spec.rb
+++ b/spec/initializers/8_metrics_spec.rb
@@ -7,6 +7,7 @@ describe 'instrument_classes', lib: true do
before do
allow(config).to receive(:instrument_method)
allow(config).to receive(:instrument_methods)
+ allow(config).to receive(:instrument_instance_method)
allow(config).to receive(:instrument_instance_methods)
end