/doc/administration/monitoring/performance/request_profiling.md

https://gitlab.com/visay/gitlab-ce · Markdown · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · bab43ce178dfee35cdc29626a52a1d0b MD5 · raw file

  1. # Request Profiling
  2. ## Procedure
  3. 1. Grab the profiling token from `Monitoring > Requests Profiles` admin page
  4. (highlighted in a blue in the image below).
  5. ![Profile token](img/request_profiling_token.png)
  6. 1. Pass the header `X-Profile-Token: <token>` to the request you want to profile. You can use any of these tools
  7. * [ModHeader](https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj) Chrome extension
  8. * [Modify Headers](https://addons.mozilla.org/en-US/firefox/addon/modify-headers/) Firefox extension
  9. * `curl --header 'X-Profile-Token: <token>' https://gitlab.example.com/group/project`
  10. 1. Once request is finished (which will take a little longer than usual), you can
  11. view the profiling output from `Monitoring > Requests Profiles` admin page.
  12. ![Profiling output](img/request_profile_result.png)
  13. ## Cleaning up
  14. Profiling output will be cleared out every day via a Sidekiq worker.