diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 11:33:21 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 11:33:21 +0000 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /scripts/perf | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) | |
download | gitlab-ce-7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0.tar.gz |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'scripts/perf')
-rwxr-xr-x | scripts/perf/gc/print_gc_stats.rb | 2 | ||||
-rwxr-xr-x | scripts/perf/query_limiting_report.rb | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/scripts/perf/gc/print_gc_stats.rb b/scripts/perf/gc/print_gc_stats.rb index 4aeb2f1ef07..a15b6f5b0e0 100755 --- a/scripts/perf/gc/print_gc_stats.rb +++ b/scripts/perf/gc/print_gc_stats.rb @@ -60,7 +60,7 @@ gc_stat_keys = ENV['GC_STAT_KEYS'].to_s.split(',').map(&:to_sym) values = [] values << ENV['SETTING_CSV'] values += gc_stat_keys.map { |k| gc_stats[k] } -values << ::Gitlab::Metrics::System.memory_usage_rss +values << ::Gitlab::Metrics::System.memory_usage_rss[:total] values << gc_total_time values << tms.utime + tms.cutime values << tms.stime + tms.cstime diff --git a/scripts/perf/query_limiting_report.rb b/scripts/perf/query_limiting_report.rb index 364cd6fc5d4..6326b2590ae 100755 --- a/scripts/perf/query_limiting_report.rb +++ b/scripts/perf/query_limiting_report.rb @@ -124,19 +124,19 @@ class QueryLimitingReport file_lines.each_index do |index| line = file_lines[index] - if line =~ /#{CODE_LINES_SEARCH_STRING}/o - issue_iid = line.slice(%r{issues/(\d+)\D}, 1) - line_number = index + 1 - code_line = { - file_location: "#{filename}:#{line_number}", - filename: filename, - line_number: line_number, - line: line, - issue_iid: issue_iid.to_i, - has_issue_iid: !issue_iid.nil? - } - code_lines << code_line - end + next unless line =~ /#{CODE_LINES_SEARCH_STRING}/o + + issue_iid = line.slice(%r{issues/(\d+)\D}, 1) + line_number = index + 1 + code_line = { + file_location: "#{filename}:#{line_number}", + filename: filename, + line_number: line_number, + line: line, + issue_iid: issue_iid.to_i, + has_issue_iid: !issue_iid.nil? + } + code_lines << code_line end end |