Commit 22cfb858 authored by Stan Hu's avatar Stan Hu

Remove requirement for personal access token in profiling

Since https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23320,
personal access tokens are no longer needed for profiling an endpoint
since users are stubbed directly.
parent 97e8f494
......@@ -38,10 +38,6 @@ For routes that require authorization you will need to provide a user to
Gitlab::Profiler.profile('/gitlab-org/gitlab-test', user: User.first)
```
The user you provide will need to have a [personal access
token](https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html) in
the GitLab instance.
Passing a `logger:` keyword argument to `Gitlab::Profiler.profile` will send
ActiveRecord and ActionController log output to that logger. Further options are
documented with the method source.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment