From 6355a07d4bcfb30cb9c2408e97fa12c1d7bb9f90 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 19 May 2016 08:43:03 -0700 Subject: [PATCH] Only do top 10 worst offenders in cucumberland --- features/support/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/support/formatter.rb b/features/support/formatter.rb index b06d675f..a075f18c 100644 --- a/features/support/formatter.rb +++ b/features/support/formatter.rb @@ -195,7 +195,7 @@ module Jekyll def print_worst_offenders @io.puts @io.puts "Worst offenders:" - @timings.sort_by { |_f, t| -t }.each do |(f, t)| + @timings.sort_by { |_f, t| -t }.take_while { |i| i < 10 }.each do |(f, t)| @io.puts " #{t}s for #{f}" end @io.puts