debian-mirror-gitlab/doc/administration/monitoring/performance/performance_bar.md

42 lines
1.7 KiB
Markdown
Raw Normal View History

2017-09-10 17:25:29 +05:30
# Performance Bar
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)
2018-03-17 18:26:18 +05:30
It allows you to see (from left to right):
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
- the current host serving the page
- the timing of the page (backend, frontend)
- time taken and number of DB queries, click through for details of these queries
2017-09-10 17:25:29 +05:30
![SQL profiling using the Performance Bar](img/performance_bar_sql_queries.png)
2018-03-17 18:26:18 +05:30
- time taken and number of calls to Redis
- time taken and number of background jobs created by Sidekiq
- profile of the code used to generate the page, line by line for either _all_, _app & lib_ , or _views_. In the profile view, the numbers in the left panel represent wall time, cpu time, and number of calls (based on [rblineprof](https://github.com/tmm1/rblineprof)).
2017-09-10 17:25:29 +05:30
![Line profiling using the Performance Bar](img/performance_bar_line_profiling.png)
2018-03-17 18:26:18 +05:30
- time taken and number of Ruby GC calls
2017-09-10 17:25:29 +05:30
## Enable the Performance Bar via the Admin panel
GitLab Performance Bar is disabled by default. To enable it for a given group,
navigate to the Admin area in **Settings > Profiling - Performance Bar**
(`/admin/application_settings`).
The only required setting you need to set is the full path of the group that
will be allowed to display the Performance Bar.
Make sure _Enable the Performance Bar_ is checked and hit
**Save** to save the changes.
2018-03-17 18:26:18 +05:30
Once the Performance Bar is enabled, you will need to press the [<kbd>p</kbd> +
<kbd>b</kbd> keyboard shortcut](../../../workflow/shortcuts.md) to actually
display it.
You can toggle the Bar using the same shortcut.
2017-09-10 17:25:29 +05:30
---
![GitLab Performance Bar Admin Settings](img/performance_bar_configuration_settings.png)
---