summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-09-03 20:48:17 +0000
committerStan Hu <stanhu@gmail.com>2019-09-03 20:48:17 +0000
commit7bf4ef502612c523dc993e35e1ed36fa2ea7364f (patch)
tree6829731263d25459ce8bc0f6ddd0684a82b9e677
parent2f01437f445b26f459fd6164f1c462c4fa94edf6 (diff)
parent18018bcd41c0a08c2a506733241206a0e0a9b7e5 (diff)
downloadgitlab-ce-7bf4ef502612c523dc993e35e1ed36fa2ea7364f.tar.gz
Merge branch 'fix-performance-bar-thresholds' into 'master'
Fix performance bar thresholds See merge request gitlab-org/gitlab-ce!32587
-rw-r--r--lib/peek/views/active_record.rb8
-rw-r--r--lib/peek/views/gitaly.rb10
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/peek/views/active_record.rb b/lib/peek/views/active_record.rb
index bbc9f11e90f..1bb3ddb964a 100644
--- a/lib/peek/views/active_record.rb
+++ b/lib/peek/views/active_record.rb
@@ -5,15 +5,15 @@ module Peek
class ActiveRecord < DetailedView
DEFAULT_THRESHOLDS = {
calls: 100,
- duration: 3,
- individual_call: 1
+ duration: 3000,
+ individual_call: 1000
}.freeze
THRESHOLDS = {
production: {
calls: 100,
- duration: 15,
- individual_call: 5
+ duration: 15000,
+ individual_call: 5000
}
}.freeze
diff --git a/lib/peek/views/gitaly.rb b/lib/peek/views/gitaly.rb
index f669feae254..7dc00b16cc0 100644
--- a/lib/peek/views/gitaly.rb
+++ b/lib/peek/views/gitaly.rb
@@ -5,15 +5,15 @@ module Peek
class Gitaly < DetailedView
DEFAULT_THRESHOLDS = {
calls: 30,
- duration: 1,
- individual_call: 0.5
+ duration: 1000,
+ individual_call: 500
}.freeze
THRESHOLDS = {
production: {
calls: 30,
- duration: 1,
- individual_call: 0.5
+ duration: 1000,
+ individual_call: 500
}
}.freeze
@@ -24,7 +24,7 @@ module Peek
private
def duration
- ::Gitlab::GitalyClient.query_time
+ ::Gitlab::GitalyClient.query_time * 1000
end
def calls