Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-26Allow profiler to authenticate by stubbing users directlySean McGivern
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.
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-07-19Add a Gitlab::Profiler.print_by_total_time convenience methodSean McGivern
This method uses Gitlab::Profiler::TotalTimeFlatPrinter internally, which is the same as RubyProf::FlatPrinter, but the min_percent option (and new max_percent option) applies to the _total_ time, not the _self_ time. This helps us figure out if we're calling a library inefficiently, for instance.
2018-06-15Expose a clean_backtrace method from Gitlab::ProfilerSean McGivern
This method makes it easier for other parts of the app to get clean backtraces, as well as console users.
2018-03-21Add query counts by model to profiler outputSean McGivern
2018-02-16Improve error handling for Gitlab::Profiler and improve doc about providing ↵Dylan Griffith
a user
2018-01-19Add Gitlab::Profiler for profiling from a console or runnerSean McGivern
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.