Sha256: 3151f63c274b844579cbe9ed01a6d437aecaef5a2dd436df37049cc95cbcad67

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

# Prints the total timespan found in the parsed log files.
puts
puts green("========================================================================")

if $summarizer.has_timestamps?
  puts "Timestamp first request: #{$summarizer.first_request_at}"
  puts "Timestamp last request:  #{$summarizer.last_request_at}" 
  puts "Total time analyzed: #{$summarizer.duration} days"
end

methods_print_array = []
$summarizer.methods.each do |key, value|
  methods_print_array << "%s (%s)" % [key, green(((value * 100) / $summarizer.request_count).to_s + '%')]
end
puts 'Methods: ' + methods_print_array.join(', ') + '.'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lackac-request-log-analyzer-0.1.3 output/timespan.rb