Commit 7bf4ef50 authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-performance-bar-thresholds' into 'master'

Fix performance bar thresholds

See merge request gitlab-org/gitlab-ce!32587
parents 2f01437f 18018bcd
...@@ -5,15 +5,15 @@ module Peek ...@@ -5,15 +5,15 @@ module Peek
class ActiveRecord < DetailedView class ActiveRecord < DetailedView
DEFAULT_THRESHOLDS = { DEFAULT_THRESHOLDS = {
calls: 100, calls: 100,
duration: 3, duration: 3000,
individual_call: 1 individual_call: 1000
}.freeze }.freeze
THRESHOLDS = { THRESHOLDS = {
production: { production: {
calls: 100, calls: 100,
duration: 15, duration: 15000,
individual_call: 5 individual_call: 5000
} }
}.freeze }.freeze
......
...@@ -5,15 +5,15 @@ module Peek ...@@ -5,15 +5,15 @@ module Peek
class Gitaly < DetailedView class Gitaly < DetailedView
DEFAULT_THRESHOLDS = { DEFAULT_THRESHOLDS = {
calls: 30, calls: 30,
duration: 1, duration: 1000,
individual_call: 0.5 individual_call: 500
}.freeze }.freeze
THRESHOLDS = { THRESHOLDS = {
production: { production: {
calls: 30, calls: 30,
duration: 1, duration: 1000,
individual_call: 0.5 individual_call: 500
} }
}.freeze }.freeze
...@@ -24,7 +24,7 @@ module Peek ...@@ -24,7 +24,7 @@ module Peek
private private
def duration def duration
::Gitlab::GitalyClient.query_time ::Gitlab::GitalyClient.query_time * 1000
end end
def calls def calls
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment