Skip to content
Snippets Groups Projects
  1. Feb 25, 2020
  2. Dec 27, 2019
  3. Dec 13, 2019
  4. Oct 09, 2019
  5. Sep 17, 2019
  6. Sep 04, 2019
  7. Aug 22, 2019
  8. Aug 01, 2019
  9. Jul 24, 2019
    • Stan Hu's avatar
      Enable Rubocop Performance/ReverseEach · 07a308ad
      Stan Hu authored
      `Array.reverse_each` is faster than `Array.reverse.each` because:
      
      * reverse.each creates a new array then loops each element
      * reverse_each loops in reverse order (no intermediate array created)
      07a308ad
  10. Apr 27, 2019
  11. Apr 17, 2019
    • Stan Hu's avatar
      Add backtrace to Gitaly performance bar · fbb3fd13
      Stan Hu authored
      This adds the backtrace to a table to show exactly where the Gitaly call
      was made to make it easier to understand where the call originated.
      
      This change also collapses the details in the same row to improve the
      usability when there is a backtrace.
      fbb3fd13
  12. Nov 26, 2018
    • Sean McGivern's avatar
      Allow profiler to authenticate by stubbing users directly · f1a7e7fe
      Sean McGivern authored
      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.
      f1a7e7fe
  13. Oct 22, 2018
  14. Sep 11, 2018
  15. Jul 19, 2018
    • Sean McGivern's avatar
      Add a Gitlab::Profiler.print_by_total_time convenience method · ef973f6f
      Sean McGivern authored
      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.
      ef973f6f
  16. Jun 15, 2018
  17. Mar 21, 2018
  18. Feb 16, 2018
  19. Jan 19, 2018
    • Sean McGivern's avatar
      Add Gitlab::Profiler for profiling from a console or runner · b16c0080
      Sean McGivern authored
      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.
      b16c0080
Loading