Skip to content
Snippets Groups Projects
Commit 18018bcd authored by Sean McGivern's avatar Sean McGivern
Browse files

Fix performance bar thresholds

These were written in seconds but are supposed to be in
milliseconds. The total Gitaly time was wrong for the same reason.
parent 937b2027
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
@@ -24,7 +24,7 @@ module Peek
private
 
def duration
::Gitlab::GitalyClient.query_time
::Gitlab::GitalyClient.query_time * 1000
end
 
def calls
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment