summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Lipniagov <alipniagov@gitlab.com>2019-08-01 17:01:04 +0300
committerAleksei Lipniagov <alipniagov@gitlab.com>2019-08-01 17:01:04 +0300
commit1cf6c191622dd62d74ad60093d86c798b2dca8e8 (patch)
tree746d249bdfa27877b7003863ddc7daa3cd7a25fe
parent24f5d5c3e08f7e49d864323a9809472f8080e1fe (diff)
downloadgitlab-ce-63571-fix-gc-profiler-data-being-wiped.tar.gz
Remove redundant local var63571-fix-gc-profiler-data-being-wiped
-rw-r--r--lib/gitlab/metrics/samplers/ruby_sampler.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/samplers/ruby_sampler.rb b/lib/gitlab/metrics/samplers/ruby_sampler.rb
index 8cc63ee1281..3bfa3da35e0 100644
--- a/lib/gitlab/metrics/samplers/ruby_sampler.rb
+++ b/lib/gitlab/metrics/samplers/ruby_sampler.rb
@@ -66,10 +66,8 @@ module Gitlab
private
def sample_gc
- gc_reports = sample_gc_reports
-
# Observe all GC samples
- gc_reports.each do |report|
+ sample_gc_reports.each do |report|
metrics[:gc_duration_seconds].observe(labels, report[:GC_TIME])
end