- Available information
- Keyboard shortcut
- Request warnings
- Enable the performance bar for non-administrators
Performance bar
- The Stats field introduced in GitLab 13.9.
- The Memory field introduced in GitLab 14.0.
- The Flamegraph field introduced in GitLab 14.4.
You can display the performance bar to see statistics for the performance of a GitLab UI page. For example:
Available information
From left to right, the performance bar displays:
- Current Host: the current host serving the page.
-
Database queries: the time taken (in milliseconds) and the total number
of database queries, displayed in the format
00ms / 00 (00 cached) pg
. Click to display a modal window with more details. You can use this to see the following details for each query:- In a transaction: shows up below the query if it was executed in the context of a transaction
- Role: shows up when Database Load Balancing is enabled. It shows which server role was used for the query. “Primary” means that the query was sent to the read/write primary server. “Replica” means it was sent to a read-only replica.
- Configuration name: this is used to distinguish between different databases configured for different GitLab features. The name shown is the same name used to configure database connections in GitLab.
- Backend: time needed for the base page to load.
-
First Contentful Paint:
Time until something was visible to the user. Displays
NaN
if your browser does not support this feature. - DomContentLoaded Event.
- Total number of requests the page loaded.
correlation_id
included.
X-Request-Id
header.
- The Wall mode samples every interval of the time on a clock on a wall. The interval is set to
10100
microseconds. - The CPU mode samples every interval of CPU activity. The interval is set to
10100
microseconds. - The Object mode samples every interval. The interval is set to
100
allocations.
GITLAB_PERFORMANCE_BAR_STATS_URL
environment variable is set,
this URL is displayed in the bar. In GitLab 13.9 and later, used only in GitLab SaaS.
Keyboard shortcut
Press the p + b keyboard shortcut to display the performance bar, and again to hide it.
For non-administrators to display the performance bar, it must be enabled for them.
Request warnings
Warning icon in the request selector removed in GitLab 14.9.
Requests that exceed predefined limits display a warning icon and explanation next to the metric. In this example, the Gitaly call duration exceeded the threshold.
Enable the performance bar for non-administrators
The performance bar is disabled by default for non-administrators. To enable it for a given group:
- Sign in as a user with administrator access.
- On the top bar, select Menu > Admin.
- On the left sidebar, select Settings > Metrics and profiling
(
admin/application_settings/metrics_and_profiling
), and expand Profiling - Performance bar. - Click Allow non-administrators access to the performance bar.
- In the Allow access to members of the following group field, provide the full path of the group allowed to access the performance.
- Click Save changes.