class Cucumber::Formatter::Usage

def print_summary

def print_summary
  aggregate_info
  keys = if config.dry_run?
           @stepdef_to_match.keys.sort_by(&:regexp_source)
         else
           @stepdef_to_match.keys.sort_by(&:mean_duration).reverse
         end
  keys.each do |stepdef_key|
    print_step_definition(stepdef_key)
    if @stepdef_to_match[stepdef_key].any?
      print_steps(stepdef_key)
    else
      @io.puts("  #{format_string('NOT MATCHED BY ANY STEPS', :failed)}")
    end
  end
  @io.puts
  super
end