Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6898a225
Commit
6898a225
authored
Sep 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
82d6d6be
7bf4ef50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
lib/peek/views/active_record.rb
lib/peek/views/active_record.rb
+4
-4
lib/peek/views/gitaly.rb
lib/peek/views/gitaly.rb
+5
-5
No files found.
lib/peek/views/active_record.rb
View file @
6898a225
...
...
@@ -5,15 +5,15 @@ module Peek
class
ActiveRecord
<
DetailedView
DEFAULT_THRESHOLDS
=
{
calls:
100
,
duration:
3
,
individual_call:
1
duration:
3
000
,
individual_call:
1
000
}.
freeze
THRESHOLDS
=
{
production:
{
calls:
100
,
duration:
15
,
individual_call:
5
duration:
15
000
,
individual_call:
5
000
}
}.
freeze
...
...
lib/peek/views/gitaly.rb
View file @
6898a225
...
...
@@ -5,15 +5,15 @@ module Peek
class
Gitaly
<
DetailedView
DEFAULT_THRESHOLDS
=
{
calls:
30
,
duration:
1
,
individual_call:
0.5
duration:
1
000
,
individual_call:
500
}.
freeze
THRESHOLDS
=
{
production:
{
calls:
30
,
duration:
1
,
individual_call:
0.5
duration:
1
000
,
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment