vendor/jruby/1.9/gems/flog-4.2.1/lib/flog.rb
##
# Iterate over the calls sorted (descending) by score.
Iterate over the calls sorted (descending) by score.
Iterate over the calls sorted ( descending ) by score .
def each_by_score max = nil
    current = 0
    calls.sort_by { |k,v| -totals[k] }.each do |class_method, call_list|
      score = totals[class_method]
      yield class_method, score, call_list
      current += score
      break if max and current >= max
    end
  end
def each_by_score max = nil current = 0 calls . sort_by { | k , v | - totals [ k ] } . each do | class_method , call_list | score = totals [ class_method ] yield class_method , score , call_list current += score break if max and current >= max end end
Iterate over the calls sorted (descending) by score.
Iterate over the calls sorted ( descending ) by score .
max