Add a Gitlab::Profiler.print_by_total_time convenience method
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.
显示
- changelogs/unreleased/add-total-time-flat-printer-for-profiling.yml 6 个添加, 0 个删除.../unreleased/add-total-time-flat-printer-for-profiling.yml
- doc/development/profiling.md 30 个添加, 0 个删除doc/development/profiling.md
- lib/gitlab/profiler.rb 6 个添加, 0 个删除lib/gitlab/profiler.rb
- lib/gitlab/profiler/total_time_flat_printer.rb 39 个添加, 0 个删除lib/gitlab/profiler/total_time_flat_printer.rb
加载中
想要评论请 注册 或 登录