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
141d3eb9
Commit
141d3eb9
authored
Nov 30, 2018
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove broken link and fix markdown formatting
parent
fc0258ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
doc/administration/monitoring/performance/request_profiling.md
...dministration/monitoring/performance/request_profiling.md
+9
-8
No files found.
doc/administration/monitoring/performance/request_profiling.md
View file @
141d3eb9
# Request Profiling
## Procedure
1.
Grab the profiling token from
`Monitoring > Requests Profiles`
admin page
(highlighted in a blue in the image below).
![
Profile token
](
img/request_profiling_token.png
)
1.
Pass the header
`X-Profile-Token: <token>`
to the request you want to profile. You can use any of these tools
*
[
ModHeader
](
https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj
)
Chrome extension
*
[
Modify Headers
](
https://addons.mozilla.org/en-US/firefox/addon/modify-headers/
)
Firefox extension
*
`curl --header 'X-Profile-Token: <token>' https://gitlab.example.com/group/project`
(highlighted in a blue in the image below).
!
[
Profile token
](
img/request_profiling_token.png
)
1.
Pass the header
`X-Profile-Token: <token>`
to the request you want to profile. You can use:
-
Browser extensions. For example,
[
ModHeader
](
https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj
)
Chrome extension.
-
`curl`
. For example,
`curl --header 'X-Profile-Token: <token>' https://gitlab.example.com/group/project`
.
1.
Once request is finished (which will take a little longer than usual), you can
view the profiling output from
`Monitoring > Requests Profiles`
admin page.
![
Profiling output
](
img/request_profile_result.png
)
view the profiling output from
`Monitoring > Requests Profiles`
admin page.
!
[
Profiling output
](
img/request_profile_result.png
)
## Cleaning up
Profiling output will be cleared out every day via a Sidekiq worker.
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