2016-11-03 12:29:30 +05:30
|
|
|
# Request Profiling
|
|
|
|
|
|
|
|
## Procedure
|
2019-02-13 22:33:31 +05:30
|
|
|
|
|
|
|
1. Grab the profiling token from **Monitoring > Requests Profiles** admin page
|
|
|
|
(highlighted in a blue in the image below).
|
|
|
|

|
|
|
|
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`.
|
2016-11-03 12:29:30 +05:30
|
|
|
1. Once request is finished (which will take a little longer than usual), you can
|
2019-02-13 22:33:31 +05:30
|
|
|
view the profiling output from **Monitoring > Requests Profiles** admin page.
|
|
|
|

|
2016-11-03 12:29:30 +05:30
|
|
|
|
|
|
|
## Cleaning up
|
2019-02-13 22:33:31 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
Profiling output will be cleared out every day via a Sidekiq worker.
|