diff options
author | Qingyu Zhao <qzhao@gitlab.com> | 2019-06-27 16:42:14 +0300 |
---|---|---|
committer | Qingyu Zhao <qzhao@gitlab.com> | 2019-07-18 16:11:08 +0300 |
commit | 10e51ac5f7087bb9cbc495fc15195994fb8763e4 (patch) | |
tree | db910ca437f1187f726fd60f7567592d5042673b /doc/administration/monitoring/performance | |
parent | 0854f18352e72c2bcc0beca601d1ea48b490d1be (diff) |
Add profile mode to extend request profiling
Extend the support for "X-Profile-Token: <token>" to have an additional
header that defines type of profile we are looking for, like:
X-Profile-Mode: execution
X-Profile-Mode: memory
Diffstat (limited to 'doc/administration/monitoring/performance')
-rw-r--r-- | doc/administration/monitoring/performance/img/request_profile_result.png | bin | 3216 -> 33920 bytes | |||
-rw-r--r-- | doc/administration/monitoring/performance/request_profiling.md | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/administration/monitoring/performance/img/request_profile_result.png b/doc/administration/monitoring/performance/img/request_profile_result.png Binary files differindex 1b06e240fa0..3b34f207974 100644 --- a/doc/administration/monitoring/performance/img/request_profile_result.png +++ b/doc/administration/monitoring/performance/img/request_profile_result.png diff --git a/doc/administration/monitoring/performance/request_profiling.md b/doc/administration/monitoring/performance/request_profiling.md index 726882fbb87..9f671e0db11 100644 --- a/doc/administration/monitoring/performance/request_profiling.md +++ b/doc/administration/monitoring/performance/request_profiling.md @@ -5,9 +5,9 @@ 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: +1. Pass the header `X-Profile-Token: <token>` and `X-Profile-Mode: <mode>`(where <mode> can be `execution` or `memory`) 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`. + - `curl`. For example, `curl --header 'X-Profile-Token: <token>' --header 'X-Profile-Mode: <mode>' 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) |