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.
Extracted from https://gitlab.com/gitlab-org/gitlab-ce/issues/48269#note_84192029.