Only do top 10 worst offenders in cucumberland

This commit is contained in:
Parker Moore 2016-05-19 08:43:03 -07:00
parent 14b36aae38
commit 6355a07d4b
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 1 additions and 1 deletions

View File

@ -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