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
0710f60f
Commit
0710f60f
authored
Jun 10, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
dc182ff6
25420de6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+1
-1
changelogs/unreleased/62144-fix-option-dropdown-button-size.yml
...logs/unreleased/62144-fix-option-dropdown-button-size.yml
+5
-0
changelogs/unreleased/sh-add-backtrace-to-sql-queries.yml
changelogs/unreleased/sh-add-backtrace-to-sql-queries.yml
+5
-0
lib/gitlab/performance_bar/peek_query_tracker.rb
lib/gitlab/performance_bar/peek_query_tracker.rb
+4
-3
No files found.
app/views/projects/commit/_commit_box.html.haml
View file @
0710f60f
...
...
@@ -28,7 +28,7 @@
=
link_to
project_tree_path
(
@project
,
@commit
),
class:
"btn btn-default append-right-10 d-none d-sm-none d-md-inline"
do
#{
_
(
'Browse files'
)
}
.dropdown.inline
%a
.btn.btn-default.dropdown-toggle.qa-options-button
{
data:
{
toggle:
"dropdown"
}
}
%a
.btn.btn-default.dropdown-toggle.qa-options-button
.d-md-inline
{
data:
{
toggle:
"dropdown"
}
}
%span
=
_
(
'Options'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-right
...
...
changelogs/unreleased/62144-fix-option-dropdown-button-size.yml
0 → 100644
View file @
0710f60f
---
title
:
Fix inconsistent option dropdown button height to match adjacent button
merge_request
:
29096
author
:
type
:
fixed
changelogs/unreleased/sh-add-backtrace-to-sql-queries.yml
0 → 100644
View file @
0710f60f
---
title
:
Add backtraces to Peek performance bar for SQL calls
merge_request
:
author
:
type
:
added
lib/gitlab/performance_bar/peek_query_tracker.rb
View file @
0710f60f
...
...
@@ -27,15 +27,16 @@ module Gitlab
subscribe
(
'sql.active_record'
)
do
|
_
,
start
,
finish
,
_
,
data
|
if
Gitlab
::
SafeRequestStore
.
store
[
:peek_enabled
]
unless
data
[
:cached
]
track_query
(
data
[
:sql
].
strip
,
data
[
:binds
],
start
,
finish
)
backtrace
=
Gitlab
::
Profiler
.
clean_backtrace
(
caller
)
track_query
(
data
[
:sql
].
strip
,
data
[
:binds
],
backtrace
,
start
,
finish
)
end
end
end
end
def
track_query
(
raw_query
,
bindings
,
start
,
finish
)
def
track_query
(
raw_query
,
bindings
,
backtrace
,
start
,
finish
)
duration
=
(
finish
-
start
)
*
1000.0
query_info
=
{
duration:
duration
.
round
(
3
),
sql:
raw_query
}
query_info
=
{
duration:
duration
.
round
(
3
),
sql:
raw_query
,
backtrace:
backtrace
}
PEEK_DB_CLIENT
.
query_details
<<
query_info
end
...
...
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