Profiler only works with absolute URLs and paths

This commit is contained in:
Sean McGivern 2019-03-07 11:06:12 +00:00
parent 5c59ff3df2
commit 7798cd874b
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ There is a `Gitlab::Profiler.profile` method, and corresponding
`bin/profile-url` script, that enable profiling a GET or POST request to a
specific URL, either as an anonymous user (the default) or as a specific user.
NOTE: **Note:** The first argument to the profiler is either a full URL
(including the instance hostname) or an absolute path, including the
leading slash.
When using the script, command-line documentation is available by passing no
arguments.