Sha256: 4a2d6bc9f7f631ae106d7b9cd3333f423a4f8b50d172dcc82fb35fb4f671daef

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

# Print requests that took more than a second to complete, sorted by their frequency.
amount = $arguments[:amount] || 10

puts
puts "Mongrel process blockers (> #{$summarizer.blocker_duration} seconds)"
puts green("========================================================================")

$summarizer.sort_blockers_by(:count).reverse[0, amount.to_i].each do |a|
 puts "#{a[0].ljust(50)}: %10.03fs [#{green("%d requests")}]" % [a[1][:total_time], a[1][:count]]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wvanbergen-request-log-analyzer-0.1.0 output/blockers.rb