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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
75bd0c3a
Commit
75bd0c3a
authored
Jul 03, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the Performance Bar
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
cdc1179f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
0 deletions
+57
-0
doc/README.md
doc/README.md
+1
-0
doc/administration/monitoring/performance/img/performance_bar.png
...nistration/monitoring/performance/img/performance_bar.png
+0
-0
doc/administration/monitoring/performance/img/performance_bar_line_profiling.png
...toring/performance/img/performance_bar_line_profiling.png
+0
-0
doc/administration/monitoring/performance/img/performance_bar_sql_queries.png
...onitoring/performance/img/performance_bar_sql_queries.png
+0
-0
doc/administration/monitoring/performance/performance_bar.md
doc/administration/monitoring/performance/performance_bar.md
+56
-0
No files found.
doc/README.md
View file @
75bd0c3a
...
...
@@ -167,6 +167,7 @@ have access to GitLab administration tools and settings.
-
[
Operations
](
administration/operations.md
)
: Keeping GitLab up and running.
-
[
Polling
](
administration/polling.md
)
: Configure how often the GitLab UI polls for updates.
-
[
Request Profiling
](
administration/monitoring/performance/request_profiling.md
)
: Get a detailed profile on slow requests.
-
[
Performance Bar
](
administration/monitoring/performance/performance_bar.md
)
: Get performance information for the current page.
### Customization
...
...
doc/administration/monitoring/performance/img/performance_bar.png
0 → 100644
View file @
75bd0c3a
182 KB
doc/administration/monitoring/performance/img/performance_bar_line_profiling.png
0 → 100644
View file @
75bd0c3a
158 KB
doc/administration/monitoring/performance/img/performance_bar_sql_queries.png
0 → 100644
View file @
75bd0c3a
161 KB
doc/administration/monitoring/performance/performance_bar.md
0 → 100644
View file @
75bd0c3a
# Performance Bar
>**Note:**
Available since GitLab 9.4.
A Performance Bar can be displayed, to dig into the performance of a page. When
activated, it looks as follows:
![
Performance Bar
](
img/performance_bar.png
)
It allows you to:
-
see the current host serving the page
-
see the timing of the page (backend, frontend)
-
the number of DB queries, the time it took, and the detail of these queries
![
SQL profiling using the Performance Bar
](
img/performance_bar_sql_queries.png
)
-
the number of calls to Redis, and the time it took
-
the number of background jobs created by Sidekiq, and the time it took
-
the number of Ruby GC calls, and the time it took
-
profile the code used to generate the page, line by line
![
Line profiling using the Performance Bar
](
img/performance_bar_line_profiling.png
)
## Enable the Performance Bar
By default, the Performance Bar is disabled. You can enable it either for a
given feature group or user.
1.
Edit
`/etc/gitlab/gitlab.rb`
1.
Find the following line, and set it to the group's
**full path**
that should
be allowed to use the Performance Bar:
```ruby
gitlab_rails['performance_bar_allowed_group'] = 'your-org/your-performance-group'
```
1.
Save the file and
[
reconfigure GitLab
][
reconfigure
]
for the changes to
take effect
1.
The Performance Bar can then be enabled via the
[
Features API
](
../../../api/features.md#set-or-create-a-feature
)
(
see
below).
### Enable for the `performance_team` feature group
The
`performance_team`
feature group maps to the group specified by the
`performance_bar_allowed_group`
setting you've set in the previous step.
```
curl --data "feature_group=performance_team" --data "value=true" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/features/performance_bar
```
### Enable for a specific user
```
curl --data "user=my_username" --data "value=true" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/features/performance_bar
```
[
reconfigure
]:
../../restart_gitlab.md#omnibus-gitlab-reconfigure
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