Added Sherlock, a custom profiling tool for GitLab
Sherlock will be a new GitLab specific tool for measuring the performance of Rails requests (and SideKiq jobs at some point). Some of the things that are currently tracked: * SQL queries along with their timings, backtraces and query plans (using "EXPLAIN ANALYZE" for PostgreSQL and regular "EXPLAIN" for MySQL) * Timings of application files (including views) on a per line basis * Some meta data such as the request method, path, total duration, etc More tracking (e.g. Rugged or gitlab-shell timings) might be added in the future. Sherlock will replace any existing tools we have used so far (e.g. active_record_query_trace and rack-mini-profiler), hence the corresponding Gems have been removed from the Gemfile. Sherlock can be enabled by starting Rails as following: ENABLE_SHERLOCK=1 bundle exec rails s Recorded transactions can be found at `/sherlock/transactions`.
显示
- Gemfile 1 个添加, 3 个删除Gemfile
- Gemfile.lock 1 个添加, 10 个删除Gemfile.lock
- app/assets/stylesheets/pages/sherlock.scss 33 个添加, 0 个删除app/assets/stylesheets/pages/sherlock.scss
- app/controllers/sherlock/application_controller.rb 12 个添加, 0 个删除app/controllers/sherlock/application_controller.rb
- app/controllers/sherlock/file_samples_controller.rb 7 个添加, 0 个删除app/controllers/sherlock/file_samples_controller.rb
- app/controllers/sherlock/queries_controller.rb 7 个添加, 0 个删除app/controllers/sherlock/queries_controller.rb
- app/controllers/sherlock/transactions_controller.rb 19 个添加, 0 个删除app/controllers/sherlock/transactions_controller.rb
- app/views/sherlock/file_samples/show.html.haml 55 个添加, 0 个删除app/views/sherlock/file_samples/show.html.haml
- app/views/sherlock/queries/_backtrace.html.haml 27 个添加, 0 个删除app/views/sherlock/queries/_backtrace.html.haml
- app/views/sherlock/queries/_general.html.haml 50 个添加, 0 个删除app/views/sherlock/queries/_general.html.haml
- app/views/sherlock/queries/show.html.haml 26 个添加, 0 个删除app/views/sherlock/queries/show.html.haml
- app/views/sherlock/transactions/_file_samples.html.haml 22 个添加, 0 个删除app/views/sherlock/transactions/_file_samples.html.haml
- app/views/sherlock/transactions/_general.html.haml 33 个添加, 0 个删除app/views/sherlock/transactions/_general.html.haml
- app/views/sherlock/transactions/_queries.html.haml 24 个添加, 0 个删除app/views/sherlock/transactions/_queries.html.haml
- app/views/sherlock/transactions/index.html.haml 40 个添加, 0 个删除app/views/sherlock/transactions/index.html.haml
- app/views/sherlock/transactions/show.html.haml 36 个添加, 0 个删除app/views/sherlock/transactions/show.html.haml
- config/initializers/rack_profiler.rb 0 个添加, 10 个删除config/initializers/rack_profiler.rb
- config/initializers/sherlock.rb 5 个添加, 0 个删除config/initializers/sherlock.rb
- config/locales/sherlock.en.yml 36 个添加, 0 个删除config/locales/sherlock.en.yml
- config/routes.rb 13 个添加, 0 个删除config/routes.rb
加载中
想要评论请 注册 或 登录