Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow profiler to authenticate by stubbing users directly54327-profiler-doesn-t-work-with-auth-now | Sean McGivern | 2018-11-26 | 1 | -17/+25 |
| | | | | | | | | | | | | | Previously, we used a personal access token. This had a couple of problems: 1. If the user didn't have a PAT, we couldn't impersonate them. 2. It depended on reading the raw PAT from the database. Instead, we can monkey-patch the authentication methods on ApplicationController (overriding the Devise ones), and remove them once we're done. This does mean that profiles will not profile auth correctly, so for that, use a PAT directly. | ||||
* | Expose a clean_backtrace method from Gitlab::Profilerexpose-clean-backtrace-method-from-profiler | Sean McGivern | 2018-06-15 | 1 | -0/+45 |
| | | | | | This method makes it easier for other parts of the app to get clean backtraces, as well as console users. | ||||
* | Add query counts by model to profiler outputadd-query-counts-to-profiler-output | Sean McGivern | 2018-03-21 | 1 | -2/+22 |
| | |||||
* | Include the ee/ directory in backtracesallow-ee-in-backtraces | Sean McGivern | 2018-03-12 | 1 | -1/+3 |
| | |||||
* | Improve error handling for Gitlab::Profiler and improve doc about providing ↵update-profiler-docs-explaining-how-to-provide-user | Dylan Griffith | 2018-02-16 | 1 | -0/+9 |
| | | | | a user | ||||
* | Add Gitlab::Profiler for profiling from a console or runner | Sean McGivern | 2018-01-19 | 1 | -0/+156 |
Gitlab::Profiler.profile takes a URL to profile, and returns the ruby-prof profile result. This is currently only for interactive use (in a console) or from the script runner. Note that when using this interactively, changes to the application within that console session will be used, so this can be used to test proposed performance changes. |