Sha256: 4050462bfd42e4503aadb880b7b8f8dd928d690c9bb9eaec3e80b378d02b3df7
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require "csv" #0.003,psych/nodes/mapping,/Users/jls/.rvm/rubies/jruby-1.7.8/lib/ruby/shared/psych/nodes.rb:6:in `(root)' durations = {} durations.default = 0 CSV.foreach(ARGV[0]) do |duration, path, source| source, line, where = source.split(":") #{"0.002"=>"/Users/jls/projects/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.3/lib/clamp.rb"} if source.include?("jruby/1.9/gems") # Get the gem name source = source.gsub(/.*\/jruby\/1.9\/gems/, "")[/[^\/]+/] elsif source.include?("/lib/logstash/") source = source.gsub(/^.*(\/lib\/logstash\/)/, "/lib/logstash/") end durations[source] += duration.to_f end durations.sort_by { |k,v| v }.each do |k,v| puts "#{v} #{k}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-lib-1.3.2 | require-analyze.rb |