diff options
author | Sean McGivern <sean@gitlab.com> | 2018-07-19 15:38:57 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-07-19 18:00:27 +0300 |
commit | ef973f6f28f5b98ba126985b01d1c463e1cd8761 (patch) | |
tree | f5a4a2f1cccfe3946aa65cc5627a86340fe0177f /app/models/trending_project.rb | |
parent | 928c81e2598da2a114011549b7aa68fce85fd077 (diff) |
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.
Diffstat (limited to 'app/models/trending_project.rb')
0 files changed, 0 insertions, 0 deletions