summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-07-19 13:38:57 +0100
committerSean McGivern <sean@gitlab.com>2018-07-19 16:00:27 +0100
commitef973f6f28f5b98ba126985b01d1c463e1cd8761 (patch)
treef5a4a2f1cccfe3946aa65cc5627a86340fe0177f /lib/api
parent928c81e2598da2a114011549b7aa68fce85fd077 (diff)
downloadgitlab-ce-ef973f6f28f5b98ba126985b01d1c463e1cd8761.tar.gz
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 'lib/api')
0 files changed, 0 insertions, 0 deletions